1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
|
<script language="javascript" src="<?php echo $this->config->item('js_path');?>jquery-plugin/jquery.validate.min.js"></script>
<?php
/**
* @Author: bullshit "oskar@biglan.at"
* @Copyright: bullshit, 2010
* @License: GNU General Public License
*/
$this->load->view('js_remote_access');
?>
<!-- Add Remote Access dialog -->
<div id="remoteaccess-dialog" title="Add Remote Access" class="dialog">
<p id="validateTips">All form fields are required.</p>
<?php echo form_open('plugin/soap', array('class' => 'addremoteaccessform')); ?>
<fieldset>
<label for="access_name">Access Name</label>
<input type="text" name="access_name" id="access_name" class="text ui-widget-content ui-corner-all" />
<label for="ip_address">IP Address</label>
<input type="text" name="ip_address" id="ip_address" class="text ui-widget-content ui-corner-all" />
<!--
<label for="token">Remote Token</label>
<input type="text" name="token" id="token" class="text ui-widget-content ui-corner-all" />
-->
</fieldset>
<?php echo form_close(); ?>
</div>
<!-- Edit Remote access dialog -->
<div id="editremoteaccess-dialog" title="Edit Remote Access" class="dialog">
<p id="validateTips">All form fields are required.</p>
<?php echo form_open('plugin/soap', array('class' => 'editremoteaccessform')); ?>
<fieldset>
<input type="hidden" name="editid_remote_access" id="editid_remote_access" />
<label for="editaccess_name">Access Name</label>
<input type="text" name="editaccess_name" id="editaccess_name" class="text ui-widget-content ui-corner-all" />
<label for="editip_address">Remote Host</label>
<input type="text" name="editip_address" id="editip_address" class="text ui-widget-content ui-corner-all" />
<div style="margin-bottom:12px">
<input type="checkbox" name="editstatus" id="editstatus" style="display: inline" />
<label for="editstatus" style="display: inline">Active</label>
</div>
<label for="edittoken">Remote Token</label>
<input type="text" name="edittoken" id="edittoken" size="30" class="text ui-widget-content ui-corner-all" readonly="readonly" />
</fieldset>
<?php echo form_close(); ?>
</div>
<div id="space_area">
<h3 style="float: left">Remote Access</h3>
<div style="float: right">
<a href="javascript:void(0);" title="Add Remote access" id="addremotebutton" class="simplebutton">Add Remote Access</a>
</div>
<table class="nice-table" cellpadding="0" cellspacing="0">
<tr>
<th class="nice-table-left">No.</th>
<th>Access Name</th>
<th>IP Address</th>
<th>Remote Token</th>
<th>Active</th>
<th align="center" class="nice-table-right" colspan="3">Control</th>
</tr>
<?php
if ($remote_access->num_rows() === 0)
{
echo '<tr><td colspan="8" style="border-left: 1px solid #000; border-right: 1px solid #000;">No remote access found.</td></tr>';
}
else
{
foreach ($remote_access->result() as $tmp):
?>
<tr id="<?php echo htmlentities($tmp->id_remote_access, ENT_QUOTES); ?>">
<td class="nice-table-left"><?php echo htmlentities($number, ENT_QUOTES); ?></td>
<td class="access_name"><?php echo htmlentities($tmp->access_name, ENT_QUOTES); ?></td>
<td class="ip_address"><?php echo htmlentities($tmp->ip_address, ENT_QUOTES); ?></td>
<td class="token"><?php echo htmlentities($tmp->token, ENT_QUOTES); ?></td>
<td class="status"><input type="checkbox" class="statusbox" <?php echo ($tmp->status === 'false') ? '' : 'checked="checked"'?> disabled="disabled" /></td>
<td> </td>
<td><a href="javascript:void(0);" class="edit"><img class="ui-icon ui-icon-pencil" title="<?php echo tr('Edit'); ?>" /></a></td>
<td class="nice-table-right"><a href="javascript:void(0);" class="delete"><img class="ui-icon ui-icon-close" title="<?php echo tr('Delete'); ?>" /></a></td>
</tr>
<?php
$number++;
endforeach;
}
?>
<tr>
<th colspan="8" class="nice-table-footer">
<div id="simplepaging"><?php echo $this->pagination->create_links();?></div>
</th>
</tr>
</table>
<br />
</div>
<!-- NOTIFICATION -->
<!-- Add Remote Access dialog -->
<div id="notification-dialog" title="Add Notification" class="dialog">
<p id="validateTips">All form fields are required.</p>
<?php echo form_open('plugin/soap', array('class' => 'addnotificationform')); ?>
<fieldset>
<label for="notifynumber">Number</label>
<input type="text" name="notifynumber" id="notifynumber" class="text ui-widget-content ui-corner-all" />
<label for="notifyvalue">Value</label>
<input type="text" name="notifyvalue" id="notifyvalue" class="text ui-widget-content ui-corner-all" />
<input type="hidden" name="notifiy" id="notifiy" value="on" />
</fieldset>
<?php echo form_close(); ?>
</div>
<!-- VIEW -->
<!--div id="space_area">
<h3 style="float: left">Notification</h3>
<div style="float: right">
<a href="javascript:void(0);" title="Add Notification" id="addnotificationbutton" class="simplebutton">Add Notification</a>
</div>
<table class="nice-table" cellpadding="0" cellspacing="0">
<tr>
<th class="nice-table-left">Number</th>
<th>Notification Value</th>
<th align="center" class="nice-table-right" colspan="2">Control</th>
</tr>
<?php
if (count($notification) === 0)
{
echo '<tr><td colspan="4" style="border-left: 1px solid #000; border-right: 1px solid #000;">No Notification found.</td></tr>';
}
else
{
?>
<tr id="notification">
<td class="nice-table-left"><?php echo htmlentities($notification['number'], ENT_QUOTES); ?></td>
<td class="notificationvalue"><?php echo htmlentities($notification['value'], ENT_QUOTES); ?></td>
<td> </td>
<td><a href="javascript:void(0);" class="edit"><img class="ui-icon ui-icon-pencil" title="Edit" /></a></td>
<td class="nice-table-right"><a href="<?php echo site_url(); ?>/plugin/delete_notification/"><img class="ui-icon ui-icon-close" title="Delete" /></a></td>
</tr>
<?php
}
?>
<tr>
<th colspan="8" class="nice-table-footer">
<div id="simplepaging"></div>
</th>
</tr>
</table>
<br />
</div-->
|