This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default_admin/blocks/core/leftFrameBlue.tpl
2011-05-03 09:49:01 +10:00

318 lines
12 KiB
Smarty

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>{$smarty.const.SITE_NAME}</title>
<meta http-equiv="no-cache" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="includes/phplayers/layerstreemenu.css" type="text/css"/>
<style type="text/css">
@import url("includes/phplayers/layerstreemenu-hidden.css");
</style>
<script type="text/javascript" src="includes/phplayers/libjs/layersmenu-browser_detection.js"></script>
<script type="text/javascript" src="includes/phplayers/libjs/layerstreemenu-cookies.js"></script>
{literal}
<script type="text/javascript">
<!--
function openUrl(u) {
var random1=Math.round(Math.random()+4*123);
var random2=Math.round(Math.random()+ random1 * 321);
window.open('admin.php'+u+'&random='+random1+'='+random2,'mainFrame','');
}
function exitAdmin() {
var random1=Math.round(Math.random()+4*123);
var random2=Math.round(Math.random()+ random1 * 321);
parent.document.location='index.php';
}
//-->
</script>
{/literal}
</head>
<body style="background-color: #cccccc;">
<!-- Load the popup class -->
{popup_init src="$URL/includes/overlib/overlib.js"}
<div style="height:68px;">&nbsp;</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="background-color: #f1f1f1; border: 1px solid #999; border-top: 1px solid #999; border-bottom: 0px; padding: 5px; padding-left:10px;">
<table width="100%" cellspacing="0" cellpadding="1" border="0">
<tr>
<td align="center"><img src="themes/default_admin/images/icons/user_16.gif" alt="Account" style="border: 0" {popup caption="Account Query Options" text="<dl>
<dt>inactive</dt><dd>Show INACTIVE accounts</dd>
<dt>active</dt><dd>Show ACTIVE accounts</dd>
<dt>today</dt><dd>Show accounts created TODAY</dd>
<dt>week</dt><dd>Show accounts created this WEEK</dd>
<dt>month</dt><dd>Show accounts created this MONTH</dd>
<dt>all</dt><dd>Show ALL accounts</dd>
<dt>fn:XXX</dt><dd>Show accounts where FIRST NAME is XXX</dd>
<dt>ln:XXX</dt><dd>Show accounts where LAST NAME is XXX</dd>
<dt>co:XXX</dt><dd>Show accounts where COMPANY NAME is XXX</dd>
<dt>em:XXX</dt><dd>Show accounts where EMAIL is XXX</dd>
<dt>id:XXX</dt><dd>Show accounts where ID is XXX</dd>
<dt>XXX</dt><dd>Show accounts where USER ID is XXX</dd>
</dl>"}/></td>
{literal}
<td><span style="white-space: nowrap;"><input id='account' value='all' size="22" style='font-size:9px' onkeypress='if(checkEnter(event)) { openQuickSearch_account(); }' onfocus='javascript:this.select()'/>&nbsp;<input type='button' value='Go' style='font-size:9px' onclick='javascript:openQuickSearch_account()'/></span>{/literal}
</td>
</tr>
<tr>
<td align="center"><img src="themes/default_admin/images/icons/calc_16.gif" alt="Invoice" style="border: 0" {popup caption="Invoice Query Options" text="<dl>
<dt>cancelled</dt><dd>Show CANCELLED invoices</dd>
<dt>due</dt><dd>Show invoices still DUE</dd>
<dt>pending</dt><dd>Show invoices still PENDING</dd>
<dt>all</dt><dd>Show ALL invoices</dd>
<dt>today</dt><dd>Show invoices created TODAY</dd>
<dt>week</dt><dd>Show invoices created this WEEK</dd>
<dt>month</dt><dd>Show invoices created this MONTH</dd>
<dt>XXX</dt><dd>Show invoice number XXX</dd>
</dl>"}/></td>
{literal}
<td><span style="white-space: nowrap;"><input id='invoice' value='all' size="22" style='font-size:9px' onkeypress='if(checkEnter(event)) { openQuickSearch_invoice(); }' onfocus='javascript:this.select()'/>&nbsp;<input type='button' value='Go' style='font-size:9px' onclick='javascript:openQuickSearch_invoice()'/></span></td>
{/literal}
</tr>
<tr>
<td align="center"><img src="themes/default_admin/images/icons/tools_16.gif" alt="Service" style="border: 0" {popup caption="Service Query Options" text="<dl>
<dt>inactive</dt><dd>Show INACTIVE services</dd>
<dt>active</dt><dd>Show ACTIVE services</dd>
<dt>all</dt><dd>Show ALL services</dd>
<dt>today</dt><dd>Show services created TODAY</dd>
<dt>week</dt><dd>Show services created this WEEK</dd>
<dt>month</dt><dd>Show services created this MONTH</dd>
<dt>XXX.XXX</dt><dd>Show services for domain name XXX.XXX</dd>
</dl>"}/></td>
{literal}
<td><span style="white-space: nowrap;"><input id='service' value='all' size="22" style='font-size:9px' onkeypress='if(checkEnter(event)) { openQuickSearch_service(); }' onfocus='javascript:this.select()'/>&nbsp;<input type='button' value='Go' style='font-size:9px' onclick='javascript:openQuickSearch_service()'/></span></td>
{/literal}
</tr>
</table>
</td>
</tr>
<tr>
<td style="background-color: #f9f9f9; border: 1px solid #999; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; color:#003399; padding: 5px;">{$list->generate_admin_menu()}</td>
</tr>
<tr>
<td style="background-color: #dddddd; border: 1px solid #999; border-top: 1px solid #fff; font-size:9px; font-family:Arial, Helvetica, sans-serif; color:#999; text-align:center; padding: 2px;">
Copyright 2004-2008, Agileco, LLC.<br/>
Copyright 2009, OSB.<br/>
All Rights Reserved.
</td>
</tr>
</table>
{literal}
<script type="text/javascript">
<!--
// function for calling the account quicksearch
function openQuickSearch_account() {
var m = 'account';
var st= "";
var input = document.getElementById(m).value;
if (input.indexOf(" ")== -1) {
var s = input;
if(s == '[i]' || s == 'inactive') {
st += '&account_status=0';
} else if(s == '[a]' || s == 'active') {
st += '&account_status=1';
} else if(s == '' || s == 'all') {
st += '';
} else if(s == '[t]' || s == 'today') {
st += '&account_date_orig[0]={/literal}{$today_start}{literal}&field_option[account_date_orig][0]=>';
} else if(s == '[w]' || s == 'week') {
st += '&account_date_orig[0]={/literal}{$week_start}{literal}&field_option[account_date_orig][0]=>';
} else if(s == '[m]' || s == 'month') {
st += '&account_date_orig[0]={/literal}{$month_start}{literal}&field_option[account_date_orig][0]=>';
} else if(s.match(/fn:/)) {
var str = s.replace(/fn:/, "");
st += '&account_first_name='+str;
} else if(s.match(/ln:/)) {
var str = s.replace(/ln:/, "");
st += '&account_last_name='+str;
} else if(s.match(/co:/)) {
var str = s.replace(/co:/, "");
st += '&account_company='+str;
} else if(s.match(/em:/)) {
var str = s.replace(/em:/, "");
st += '&account_email='+str;
} else if(s.match(/id:/)) {
var str = s.replace(/id:/, "");
st += '&account_id='+str;
} else {
st += '&account_username=' +s;
}
} else {
var array=input.split(" ");
var num=0;
while(num < array.length) {
var s = array[num];
if(s == '[i]' || s == 'inactive') {
st += '&account_status=0';
} else if(s == '[a]' || s == 'active') {
st += '&account_status=1';
} else if(s == '[t]' || s == 'today') {
st += '&account_date_orig[0]={/literal}{$today_start}{literal}&field_option[account_date_orig][0]=>';
} else if(s == '[w]' || s == 'week') {
st += '&account_date_orig[0]={/literal}{$week_start}{literal}&field_option[account_date_orig][0]=>';
} else if(s == '[m]' || s == 'month') {
st += '&account_date_orig[0]={/literal}{$month_start}{literal}&field_option[account_date_orig][0]=>';
} else if(s.match(/fn:/)) {
var str = s.replace(/fn:/, "");
st += '&account_first_name='+str;
} else if(s.match(/ln:/)) {
var str = s.replace(/ln:/, "");
st += '&account_last_name='+str;
} else if(s.match(/co:/)) {
var str = s.replace(/co:/, "");
st += '&account_company='+str;
} else if(s.match(/em:/)) {
var str = s.replace(/em:/, "");
st += '&account_email='+str;
} else {
st += '&account_username=' +s;
}
num+=1;
}
}
var u = '?_page=core:search&module='+m+'&_next_page_one=view'+st;
openUrl(u);
}
// function for calling the invoice quicksearch
function openQuickSearch_invoice() {
var m = 'invoice';
var st= "";
var input = document.getElementById(m).value;
if (input.indexOf(" ")== -1) {
var s = input;
if(s == '[d]' || s == 'due') {
st += '&invoice_status!=0&invoice_billing_status=0';
} else if(s == '[p]' || s == 'pending') {
st += '&invoice_status!=0&invoice_billing_status=1&invoice_process_status=0';
} else if(s == '[c]' || s == 'cancelled') {
st += '&invoice_status=0';
} else if(s == '' || s == 'all') {
st += '';
} else if(s == '[t]' || s == 'today') {
st += '&invoice_status!=0&invoice_date_orig[0]={/literal}{$today_start}{literal}&field_option[invoice_date_orig][0]=>';
} else if(s == '[w]' || s == 'week') {
st += '&invoice_status!=0&invoice_date_orig[0]={/literal}{$week_start}{literal}&field_option[invoice_date_orig][0]=>';
} else if(s == '[m]' || s == 'month') {
st += '&invoice_status!=0&invoice_date_orig[0]={/literal}{$month_start}{literal}&field_option[invoice_date_orig][0]=>';
} else {
st += '&invoice_id=' +s;
}
} else {
var array=input.split(" ");
var num=0;
while(num < array.length)
{
var s = array[num];
if(s == '[d]' || s == 'due') {
st += '&invoice_status!=0&invoice_billing_status=0';
} else if(s == '[p]' || s == 'pending') {
st += '&invoice_status!=0&invoice_billing_status=1&invoice_process_status=0';
} else if(s == '[c]' || s == 'cancelled') {
st += '&invoice_status!=0&invoice_status=0';
} else if(s == '' || s == 'all') {
st += '';
} else if(s == '[t]' || s == 'today') {
st += '&invoice_status!=0&invoice_date_orig[0]={/literal}{$today_start}{literal}&field_option[invoice_date_orig][0]=>';
} else if(s == '[w]' || s == 'week') {
st += '&invoice_status!=0&invoice_date_orig[0]={/literal}{$week_start}{literal}&field_option[invoice_date_orig][0]=>';
} else if(s == '[m]' || s == 'month') {
st += '&invoice_status!=0&invoice_date_orig[0]={/literal}{$month_start}{literal}&field_option[invoice_date_orig][0]=>';
} else {
st += '&invoice_id=' +s;
}
num+=1;
}
}
var u = '?_page=core:search&module='+m+'&_next_page_one=view'+st;
openUrl(u);
}
// function for calling the invoice quicksearch
function openQuickSearch_service() {
var m = 'service';
var st= "";
var input = document.getElementById(m).value;
var a = parseInt(input);
var b = parseFloat(input);
if (input == '' || input == 'all') {
// do nothing
} else if (a == b) {
st += '&service_id='+input;
} else if (input.indexOf(".") != -1) {
var array=input.split(".");
var domain = array[0];
var tld = input.substr(input.indexOf(".")+1);
st += '&service_domain_name='+domain+'&service_domain_tld='+tld;
} else if (input.indexOf(" ")== -1) {
var s = input;
if(s == '[i]' || s == 'inactive') {
st += '&service_active=0';
} else if(s == '[a]' || s == 'active') {
st += '&service_active=1';
} else if(s == '' || s == 'all') {
st += '';
} else if(s == '[t]' || s == 'today') {
st += '&service_date_orig[0]={/literal}{$today_start}{literal}&field_option[service_date_orig][0]=>';
} else if(s == '[w]' || s == 'week') {
st += '&service_date_orig[0]={/literal}{$week_start}{literal}&field_option[service_date_orig][0]=>';
} else if(s == '[m]' || s == 'month') {
st += '&service_date_orig[0]={/literal}{$month_start}{literal}&field_option[service_date_orig][0]=>';
} else {
st += '&service_id=' +s;
}
} else {
var array=input.split(" ");
var num=0;
while(num < array.length)
{
var s = array[num];
if(s == '[i]' || s == 'inactive') {
st += '&service_active=0';
} else if(s == '[a]' || s == 'active') {
st += '&service_active=1';
} else if(s == '' || s == 'all') {
st += '';
} else if(s == '[t]' || s == 'today') {
st += '&service_date_orig[0]={/literal}{$today_start}{literal}&field_option[service_date_orig][0]=>';
} else if(s == '[w]' || s == 'week') {
st += '&service_date_orig[0]={/literal}{$week_start}{literal}&field_option[service_date_orig][0]=>';
} else if(s == '[m]' || s == 'month') {
st += '&service_date_orig[0]={/literal}{$month_start}{literal}&field_option[service_date_orig][0]=>';
} else {
st += '&service_id=' +s;
}
num+=1;
}
}
var u = '?_page=core:search&module='+m+'&_next_page_one=view'+st;
openUrl(u);
}
function checkEnter(e) {
var characterCode;
if(e && e.which){
characterCode = e.which;
} else{
e = event;
characterCode = e.keyCode;
}
if(characterCode == 13){
return true;
} else {
return false;
}
}
//-->
</script>
{/literal}
</body>
</html>