Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# imscp-theme-bootstrap
Vanilla bootstrap 3 theme for i-MSCP hosting panel
Vanilla Bootstrap 4 theme for i-MSCP hosting panel
94 changes: 94 additions & 0 deletions admin/admin_add.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<form method="post" action="admin_add.php" autocomplete="off">
<table class="firstColFixed">
<thead>
<tr>
<th colspan="2"><?= tohtml(tr('Login data')); ?></th>
</tr>
</thead>
<tbody>
<tr>
<td><label for="admin_name"><?= tohtml(tr('Username')); ?></label></td>
<td><input type="text" name="admin_name" id="admin_name" value="<?= tohtml($this->form->getValue('admin_name'), 'htmlAttr'); ?>" required></td>
</tr>
<tr>
<td><label for="password"><?= tohtml(tr('Password')); ?></label></td>
<td><input type="password" name="admin_pass" id="password" class="pwd_generator" value="" autocomplete="new-password" required></td>
</tr>
<tr>
<td><label for="cpassword"><?= tohtml(tr('Password confirmation')); ?></label></td>
<td><input type="password" name="admin_pass_confirmation" id="cpassword" value="" autocomplete="new-password" required></td>
</tr>
</tbody>
</table>
<table class="firstColFixed">
<thead>
<tr>
<th colspan="2"><?= tohtml(tr('Personal data')); ?></th>
</tr>
</thead>
<tbody>
<tr>
<td><label for="fname"><?= tohtml(tr('First name')); ?></label></td>
<td><input type="text" name="fname" id="fname" value="<?= tohtml($this->form->getValue('fname'), 'htmlAttr'); ?>"></td>
</tr>
<tr>
<td><label for="lname"><?= tohtml(tr('Last name')); ?></label></td>
<td><input type="text" name="lname" id="lname" value="<?= tohtml($this->form->getValue('lname'), 'htmlAttr'); ?>"></td>
</tr>
<tr>
<td><label for="gender"><?= tohtml(tr('Gender')); ?></label></td>
<td>
<select id="gender" name="gender">
<option value="M"<?= $this->form->getValue('gender') == 'M' ? ' selected' : ''; ?>><?= tohtml(tr('Male')); ?></option>
<option value="F"<?= $this->form->getValue('gender') == 'F' ? ' selected' : ''; ?>><?= tohtml(tr('Female')); ?></option>
<option value="U"<?= $this->form->getValue('gender') == 'U' ? ' selected' : ''; ?>><?= tohtml(tr('Unknown')); ?></option>
</select>
</td>
</tr>
<tr>
<td><label for="firm"><?= tohtml(tr('Company')); ?></label></td>
<td><input type="text" name="firm" id="firm" value="<?= tohtml($this->form->getValue('firm'), 'htmlAttr'); ?>"></td>
</tr>
<tr>
<td><label for="street1"><?= tohtml(tr('Street 1')); ?></label></td>
<td><input type="text" name="street1" id="street1" value="<?= tohtml($this->form->getValue('street1'), 'htmlAttr'); ?>"></td>
</tr>
<tr>
<td><label for="street2"><?= tohtml(tr('Street 2')); ?></label></td>
<td><input type="text" name="street2" id="street2" value="<?= tohtml($this->form->getValue('street2'), 'htmlAttr'); ?>"></td>
</tr>
<tr>
<td><label for="zip"><?= tohtml(tr('Zip/Postal code')); ?></label></td>
<td><input type="text" name="zip" id="zip" value="<?= tohtml($this->form->getValue('zip'), 'htmlAttr'); ?>"></td>
</tr>
<tr>
<td><label for="city"><?= tohtml(tr('City')); ?></label></td>
<td><input type="text" name="city" id="city" value="<?= tohtml($this->form->getValue('city'), 'htmlAttr'); ?>"></td>
</tr>
<tr>
<td><label for="state"><?= tohtml(tr('State/Province')); ?></label></td>
<td><input type="text" name="state" id="state" value="<?= tohtml($this->form->getValue('state'), 'htmlAttr'); ?>"></td>
</tr>
<tr>
<td><label for="country"><?= tohtml(tr('Country')); ?></label></td>
<td><input type="text" name="country" id="country" value="<?= tohtml($this->form->getValue('country'), 'htmlAttr'); ?>"></td>
</tr>
<tr>
<td><label for="email"><?= tohtml(tr('Email')); ?></label></td>
<td><input type="text" name="email" id="email" value="<?= tohtml(decode_idna($this->form->getValue('email')), 'htmlAttr'); ?>" required></td>
</tr>
<tr>
<td><label for="phone"><?= tohtml(tr('Phone')); ?></label></td>
<td><input type="text" name="phone" id="phone" value="<?= tohtml($this->form->getValue('phone'), 'htmlAttr'); ?>"></td>
</tr>
<tr>
<td><label for="fax"><?= tohtml(tr('Fax')); ?></label></td>
<td><input type="text" name="fax" id="fax" value="<?= tohtml($this->form->getValue('fax'), 'htmlAttr'); ?>"></td>
</tr>
</tbody>
</table>
<div class="buttons">
<input name="Submit" type="submit" value="<?= tohtml(tr('Add'), 'htmlAttr'); ?>">
<a href="users.php" class="link_as_button"><?= tohtml(tr('Cancel')); ?></a>
</div>
</form>
97 changes: 0 additions & 97 deletions admin/admin_add.tpl

This file was deleted.

97 changes: 0 additions & 97 deletions admin/admin_edit.tpl

This file was deleted.

2 changes: 1 addition & 1 deletion admin/circular.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
</table>
<div class="buttons">
<input name="Submit" type="submit" value="{TR_SEND_CIRCULAR}">
<a class="link_as_button" href="manage_users.php">{TR_CANCEL}</a>
<a class="link_as_button" href="users.php">{TR_CANCEL}</a>
</div>
</form>
4 changes: 2 additions & 2 deletions admin/custom_menus.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
</tr>
<tr>
<td><label for="menu_order">{TR_MENU_ORDER} <span class="italic">({TR_OPTIONAL})</span></label></td>
<td><input type="text" name="menu_order" id="menu_order" value="{MENU_ORDER}"></td>
<td><input type="number" name="menu_order" id="menu_order" min="0" value="{MENU_ORDER}"></td>
</tr>
</tbody>
</table>
Expand All @@ -94,7 +94,7 @@
<div class="buttons">
<input name="editMenu" type="button" value="{TR_UPDATE}" onclick="return sbmt(document.forms[0], 'menu_update');">
<a class="link_as_button" href="custom_menus.php">{TR_CANCEL}</a>
<input type="hidden" name="edit_id" value="{EDIT_ID}" /">
<input type="hidden" name="edit_id" value="{EDIT_ID}"">
</div>
<!-- EDP: edit_menu -->
<input type="hidden" name="uaction" value="">
Expand Down
26 changes: 0 additions & 26 deletions admin/database_update.tpl

This file was deleted.

5 changes: 3 additions & 2 deletions admin/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
</tbody>
</table>
<h2 class="traffic"><span>{TR_SERVER_TRAFFIC}</span></h2>
<p>{TRAFFIC_WARNING}</p>
<div class="graph">
<span style="width:{TRAFFIC_PERCENT}%">&nbsp;</span>
<span style="width:{TRAFFIC_PERCENT_WIDTH}%">&nbsp;</span>
<strong>{TRAFFIC_PERCENT}%</strong>
</div>
<p>{TRAFFIC_WARNING}</p>
Loading