Commit c513fa15 authored by cfoe's avatar cfoe
Browse files

backporting from ispc-larry: country-flags in lists, added groups to...

backporting from ispc-larry: country-flags in lists, added groups to admin/users list, added icons for user_typ
parent 4f9c3857
......@@ -27,3 +27,5 @@ resources @ https://github.com/foe-services/ispc-resources
- all icons separate: https://github.com/downloads/foe-services/ispc-larry/ispc-default_separate.zip
- all used icons as layers and sprite as .psd: https://github.com/downloads/foe-services/ispc-larry/ispc-default_psd.zip
- added sprites for (nearly) all used icons where suitable
- added flags for country text in lists
- added some list column widths
\ No newline at end of file
......@@ -363,7 +363,22 @@ tbody th.sub {
background: #ddd;
color: #333;
}
table.list th[class$="_pid"],
table.list td[class$="_pid"],
table.list th[class$="_active"],
table.list td[class$="_active"],
table.list th.tbl_col_autoresponder,
table.list td.tbl_col_autoresponder {
width: 70px;
text-align: center;
}
table.list .tbl_col_buttons,
table.list .tbl_col_limit {
width: 150px;
}
.tbl_col_client_pid input {
width: 50px;
}
.pnl_listarea th[class^="tbl_col"] { cursor:pointer; }
.pnl_listarea th[class^="tbl_col"]:hover { background-position:0 -15px!important; }
......@@ -604,11 +619,11 @@ div#ir-No {
background: url("../icons/x16_sprite.png") no-repeat transparent;
}
#ir-Yes {
background-position: left -342px !important;
background-position: center -342px !important;
height: 16px;
}
#ir-No {
background-position: left -362px !important;
background-position: center -362px !important;
height: 16px;
}
.swap {
......@@ -741,6 +756,21 @@ button.icons16 {
.icons16.icoDbAdmin { background-position: -1px -221px; }
.icons16.icoAction { background-position: -1px -241px; }
div.group-icon {
float: left;
padding: 2px 0;
}
.group-admin,
.group-user {
height: 20px;
width: 20px;
padding: 0;
float: left;
background: url("../icons/x16_sprite.png") no-repeat transparent;
}
.group-admin { background-position: 0 -380px; }
.group-user { background-position: 0 -400px; }
#ajaxloader {
text-align:center;
margin-top: 180px;
......@@ -786,6 +816,15 @@ select.withicons option {
background-position: 1px;
padding-left:24px;
}
div[class^=country-] {
background-image: url("../icons/flags_sprite.png");
background-repeat: no-repeat;
height: 20px;
width: 26px;
}
div[class^=country-] span {
display: none;
}
select.flags option {
background-image: url("../icons/flags_sprite.png");
background-repeat: no-repeat;
......@@ -794,7 +833,7 @@ select.flags option {
select.flags option[value=EL] {background-position:0 -1475px}
select.flags option[value=AD], select.flags option[value=ad] {background-position:0 -1px}
select.flags option[value=AE], select.flags option[value=ae] {background-position:0 -23px}
select.flags option[value=AF], select.flags option[value=af] {background-position:0 -45px}
select.flags option[value=AF], select.flags option[value=af], .country-AF {background-position:0 -45px}
select.flags option[value=AG], select.flags option[value=ag] {background-position:0 -67px}
select.flags option[value=AI], select.flags option[value=ai] {background-position:0 -89px}
select.flags option[value=AL], select.flags option[value=al] {background-position:0 -111px}
......@@ -847,7 +886,7 @@ select.flags option[value=CV], select.flags option[value=cv] {background-positio
select.flags option[value=CX], select.flags option[value=cx] {background-position:0 -1167px}
select.flags option[value=CY], select.flags option[value=cy] {background-position:0 -1189px}
select.flags option[value=CZ], select.flags option[value=cz] {background-position:0 -1211px}
select.flags option[value=DE], select.flags option[value=de] {background-position:0 -1233px}
select.flags option[value=DE], select.flags option[value=de], .country-DE {background-position:0 -1233px}
select.flags option[value=DJ], select.flags option[value=dj] {background-position:0 -1255px}
select.flags option[value=DK], select.flags option[value=dk] {background-position:0 -1277px}
select.flags option[value=DM], select.flags option[value=dm] {background-position:0 -1299px}
......@@ -866,7 +905,7 @@ select.flags option[value=FM], select.flags option[value=fm] {background-positio
select.flags option[value=FO], select.flags option[value=fo] {background-position:0 -1673px}
select.flags option[value=FR], select.flags option[value=fr] {background-position:0 -1695px}
select.flags option[value=GA], select.flags option[value=ga] {background-position:0 -1717px}
select.flags option[value=GB], select.flags option[value=en], select.flags option[value=gb] {background-position:0 -1739px}
select.flags option[value=GB], select.flags option[value=en], select.flags option[value=gb], .country-GB, .country-EN {background-position:0 -1739px}
select.flags option[value=GD], select.flags option[value=gd] {background-position:0 -1761px}
select.flags option[value=GE], select.flags option[value=ge] {background-position:0 -1783px}
select.flags option[value=GF], select.flags option[value=gf] {background-position:0 -1805px}
......
......@@ -18,7 +18,7 @@
<thead>
<tr class="caption">
<th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th>
<th class="tbl_col_client_id" scope="col"><tmpl_var name="client_id_txt"></th>
<th class="tbl_col_client_pid" scope="col"><tmpl_var name="client_id_txt"></th>
<th class="tbl_col_ip_type" scope="col"><tmpl_var name="ip_type_txt"></th>
<th class="tbl_col_ip_address" scope="col"><tmpl_var name="ip_address_txt"></th>
<th class="tbl_col_virtualhost" scope="col"><tmpl_var name="virtualhost_txt"></th>
......@@ -27,7 +27,7 @@
</tr>
<tr class="filter">
<td class="tbl_col_server_id"><select name="search_server_id">{tmpl_var name='search_server_id'}</select></td>
<td class="tbl_col_client_id"><select name="search_client_id">{tmpl_var name='search_client_id'}</select></td>
<td class="tbl_col_client_pid"><select name="search_client_id">{tmpl_var name='search_client_id'}</select></td>
<td class="tbl_col_ip_type"><select name="search_ip_type">{tmpl_var name='search_ip_type'}</select></td>
<td class="tbl_col_ip_address"><input type="text" name="search_ip_address" value="{tmpl_var name='search_ip_address'}" /></td>
<td class="tbl_col_virtualhost"><select name="search_virtualhost">{tmpl_var name='search_virtualhost'}</select></td>
......@@ -41,7 +41,7 @@
<tmpl_loop name="records">
<tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
<td class="tbl_col_server_id"><a href="#" onClick="loadContent('admin/server_ip_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td>
<td class="tbl_col_client_id"><a href="#" onClick="loadContent('admin/server_ip_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="client_id"}</a></td>
<td class="tbl_col_client_pid"><a href="#" onClick="loadContent('admin/server_ip_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="client_id"}</a></td>
<td class="tbl_col_ip_type"><a href="#" onClick="loadContent('admin/server_ip_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="ip_type"}</a></td>
<td class="tbl_col_ip_address"><a href="#" onClick="loadContent('admin/server_ip_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="ip_address"}</a></td>
<td class="tbl_col_virtualhost"><a href="#" onClick="loadContent('admin/server_ip_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="virtualhost"}</a></td>
......
......@@ -18,13 +18,13 @@
<thead>
<tr class="caption">
<th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th>
<th class="tbl_col_client_id" scope="col"><tmpl_var name="client_id_txt"></th>
<th class="tbl_col_client_pid" scope="col"><tmpl_var name="client_id_txt"></th>
<th class="tbl_col_ip_address" scope="col"><tmpl_var name="name_txt"></th>
<th class="tbl_col_buttons" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr class="filter">
<td class="tbl_col_server_id"><select name="search_server_id">{tmpl_var name='search_server_id'}</select></td>
<td class="tbl_col_client_id"><select name="search_client_id">{tmpl_var name='search_client_id'}</select></td>
<td class="tbl_col_client_pid"><select name="search_client_id">{tmpl_var name='search_client_id'}</select></td>
<td class="tbl_col_ip_address"><input type="text" name="search_name" value="{tmpl_var name='search_name'}" /></td>
<td class="tbl_col_buttons">
<button type="button" class="button icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','admin/server_php_list.php');"><span>{tmpl_var name="filter_txt"}</span></button>
......@@ -35,7 +35,7 @@
<tmpl_loop name="records">
<tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
<td class="tbl_col_server_id"><a href="#" onClick="loadContent('admin/server_php_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td>
<td class="tbl_col_client_id"><a href="#" onClick="loadContent('admin/server_php_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="client_id"}</a></td>
<td class="tbl_col_client_pid"><a href="#" onClick="loadContent('admin/server_php_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="client_id"}</a></td>
<td class="tbl_col_name"><a href="#" onClick="loadContent('admin/server_php_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="name"}</a></td>
<td class="tbl_col_buttons">
<a class="button icons16 icoDelete" href="javascript: del_record('admin/server_php_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a>
......
......@@ -19,15 +19,17 @@
<table class="list">
<thead>
<tr class="caption">
<th class="tbl_col_client_id" scope="col"><tmpl_var name="client_id_txt"></th>
<th class="tbl_col_client_pid" scope="col"><tmpl_var name="client_id_txt"></th>
<th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th>
<th class="tbl_col_username" scope="col"><tmpl_var name="username_txt"></th>
<th class="tbl_col_groups" scope="col"><tmpl_var name="groups_txt"></th>
<th class="tbl_col_limit" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr class="filter">
<td class="tbl_col_client_id"><input type="text" name="search_client_id" value="{tmpl_var name='search_client_id'}" /></td>
<td class="tbl_col_client_pid"><input type="text" name="search_client_id" value="{tmpl_var name='search_client_id'}" /></td>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
<td class="tbl_col_username"><input type="text" name="search_username" value="{tmpl_var name='search_username'}" /></td>
<td class="tbl_col_groups"><select name="search_groups">{tmpl_var name='search_groups'}</select></td>
<td class="tbl_col_buttons">
<button type="button" class="button icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','admin/users_list.php');"><span>{tmpl_var name="filter_txt"}</span></button>
</td>
......@@ -36,9 +38,10 @@
<tbody>
<tmpl_loop name="records">
<tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
<td class="tbl_col_client_id"><a href="#" onClick="loadContent('admin/users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="client_id"}</a></td>
<td class="tbl_col_client_pid"><a href="#" onClick="loadContent('admin/users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="client_id"}</a></td>
<td class="tbl_col_active"><a href="#" onClick="loadContent('admin/users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td>
<td class="tbl_col_username"><a href="#" onClick="loadContent('admin/users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="username"}</a></td>
<td class="tbl_col_username"><div class="icons16 group-{tmpl_var name="typ"}" title="{tmpl_var name="typ"}"><span>{tmpl_var name="typ"}</span></div> <div class="group-icon"><a href="#" onClick="loadContent('admin/users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="username"}</a></div></td>
<td class="tbl_col_groups">{tmpl_var name="groups"}</td>
<td class="tbl_col_buttons">
<tmpl_if name="username" op="!=" value="admin">
<a class="button icons16 icoLoginAs" href="javascript: loadContent('admin/login_as.php?id={tmpl_var name='id'}');"><span>{tmpl_var name='login_as_txt'}</span></a>
......
......@@ -18,14 +18,14 @@
<table class="list">
<thead>
<tr class="caption">
<th class="tbl_col_circle_id" scope="col"><tmpl_var name="circle_id_txt"></th>
<th class="tbl_col_circle_pid" scope="col"><tmpl_var name="circle_id_txt"></th>
<th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th>
<th class="tbl_col_circle_name" scope="col"><tmpl_var name="circle_name_txt"></th>
<th class="tbl_col_description" scope="col"><tmpl_var name="description_txt"></th>
<th class="tbl_col_limit" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr class="filter">
<td class="tbl_col_circle_id"><input type="text" name="search_circle_id" value="{tmpl_var name='search_circle_id'}" /></td>
<td class="tbl_col_circle_pid"><input type="text" name="search_circle_id" value="{tmpl_var name='search_circle_id'}" /></td>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
<td class="tbl_col_circle_name"><input type="text" name="search_circle_name" value="{tmpl_var name='search_circle_name'}" /></td>
<td class="tbl_col_description"><input type="text" name="search_description" value="{tmpl_var name='search_description'}" /></td>
......@@ -37,7 +37,7 @@
<tbody>
<tmpl_loop name="records">
<tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
<td class="tbl_col_circle_id"><a href="#" onClick="loadContent('client/client_circle_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="circle_id"}</a></td>
<td class="tbl_col_circle_pid"><a href="#" onClick="loadContent('client/client_circle_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="circle_id"}</a></td>
<td class="tbl_col_active"><a href="#" onClick="loadContent('client/client_circle_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td>
<td class="tbl_col_circle_name"><a href="#" onClick="loadContent('client/client_circle_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="circle_name"}</a></td>
<td class="tbl_col_description"><a href="#" onClick="loadContent('client/client_circle_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="description"}</a></td>
......
......@@ -18,7 +18,7 @@
<table class="list">
<thead>
<tr class="caption">
<th class="tbl_col_client_id" scope="col"><tmpl_var name="client_id_txt"></th>
<th class="tbl_col_client_pid" scope="col"><tmpl_var name="client_id_txt"></th>
<th class="tbl_col_company_name" scope="col"><tmpl_var name="company_name_txt"></th>
<th class="tbl_col_contact_name" scope="col"><tmpl_var name="contact_name_txt"></th>
<th class="tbl_col_username" scope="col"><tmpl_var name="username_txt"></th>
......@@ -27,12 +27,12 @@
<th class="tbl_col_limit" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr class="filter">
<td class="tbl_col_client_id"><input type="text" name="search_client_id" value="{tmpl_var name='search_client_id'}" /></td>
<td class="tbl_col_client_pid"><input type="text" name="search_client_id" value="{tmpl_var name='search_client_id'}" /></td>
<td class="tbl_col_company_name"><input type="text" name="search_company_name" value="{tmpl_var name='search_company_name'}" /></td>
<td class="tbl_col_contact_name"><input type="text" name="search_contact_name" value="{tmpl_var name='search_contact_name'}" /></td>
<td class="tbl_col_username"><input type="text" name="search_username" value="{tmpl_var name='search_username'}" /></td>
<td class="tbl_col_city"><input type="text" name="search_city" value="{tmpl_var name='search_city'}" /></td>
<td class="tbl_col_country"><select name="search_country">{tmpl_var name='search_country'}</select>/td>
<td class="tbl_col_country"><select name="search_country">{tmpl_var name='search_country'}</select></td>
<td class="tbl_col_buttons">
<button type="button" class="button icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','client/client_list.php');"><span>{tmpl_var name="filter_txt"}</span></button>
</td>
......@@ -41,12 +41,12 @@
<tbody>
<tmpl_loop name="records">
<tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
<td class="tbl_col_client_id"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="client_id"}</a></td>
<td class="tbl_col_client_pid"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="client_id"}</a></td>
<td class="tbl_col_company_name"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="company_name"}</a></td>
<td class="tbl_col_contact_name"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="contact_name"}</a></td>
<td class="tbl_col_username"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="username"}</a></td>
<td class="tbl_col_city"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="city"}</a></td>
<td class="tbl_col_country"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="country"}</a></td>
<td class="tbl_col_country"><div class="country-{tmpl_var name="country"}"><span>{tmpl_var name="country"}</span></div></td>
<td class="tbl_col_buttons">
<tmpl_if name="is_admin">
<a class="button icons16 icoLoginAs" href="javascript: loadContent('admin/login_as.php?id={tmpl_var name='id'}');"><span>{tmpl_var name='login_as_txt'}</span></a>
......
......@@ -18,7 +18,7 @@
<table class="list">
<thead>
<tr class="caption">
<th class="tbl_col_client_id" scope="col"><tmpl_var name="client_id_txt"></th>
<th class="tbl_col_client_pid" scope="col"><tmpl_var name="client_id_txt"></th>
<th class="tbl_col_company_name" scope="col"><tmpl_var name="company_name_txt"></th>
<th class="tbl_col_contact_name" scope="col"><tmpl_var name="contact_name_txt"></th>
<th class="tbl_col_city" scope="col"><tmpl_var name="city_txt"></th>
......@@ -26,11 +26,11 @@
<th class="tbl_col_limit" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr class="filter">
<td class="tbl_col_client_id"><input type="text" name="search_client_id" value="{tmpl_var name='search_client_id'}" /></td>
<td class="tbl_col_client_pid"><input type="text" name="search_client_id" value="{tmpl_var name='search_client_id'}" /></td>
<td class="tbl_col_company_name"><input type="text" name="search_company_name" value="{tmpl_var name='search_company_name'}" /></td>
<td class="tbl_col_contact_name"><input type="text" name="search_contact_name" value="{tmpl_var name='search_contact_name'}" /></td>
<td class="tbl_col_city"><input type="text" name="search_city" value="{tmpl_var name='search_city'}" /></td>
<td class="tbl_col_country"><input type="text" name="search_country" value="{tmpl_var name='search_country'}" /></td>
<td class="tbl_col_country"><select name="search_country">{tmpl_var name='search_country'}</select></td>
<td class="tbl_col_buttons">
<button type="button" class="button icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','client/reseller_list.php');"><span>{tmpl_var name="filter_txt"}</span></button>
</td>
......@@ -39,11 +39,11 @@
<tbody>
<tmpl_loop name="records">
<tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
<td class="tbl_col_client_id"><a href="#" onClick="loadContent('client/reseller_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="client_id"}</a></td>
<td class="tbl_col_client_pid"><a href="#" onClick="loadContent('client/reseller_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="client_id"}</a></td>
<td class="tbl_col_company_name"><a href="#" onClick="loadContent('client/reseller_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="company_name"}</a></td>
<td class="tbl_col_contact_name"><a href="#" onClick="loadContent('client/reseller_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="contact_name"}</a></td>
<td class="tbl_col_city"><a href="#" onClick="loadContent('client/reseller_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="city"}</a></td>
<td class="tbl_col_country"><a href="#" onClick="loadContent('client/reseller_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="country"}</a></td>
<td class="tbl_col_country"><div class="country-{tmpl_var name="country"}"><span>{tmpl_var name="country"}</span></div></td>
<td class="tbl_col_buttons">
<a class="button icons16 icoLoginAs" href="javascript: loadContent('admin/login_as.php?id={tmpl_var name='id'}');"><span>{tmpl_var name='login_as_txt'}</span></a>
<a class="button icons16 icoDelete" href="javascript: del_record('client/reseller_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment