diff --git a/system/boot.php b/system/boot.php index d28761ca..9d0fd4de 100644 --- a/system/boot.php +++ b/system/boot.php @@ -71,11 +71,11 @@ function _notify($msg, $type = 'e') } require_once('system/vendors/smarty/libs/Smarty.class.php'); -$_theme = APP_URL . '/ui/theme/' . $config['theme']; +$_theme = APP_URL . '/ui/ui'; $lan_file = 'system/lan/' . $config['language'] . '/common.lan.php'; require($lan_file); $ui = new Smarty(); -$ui->setTemplateDir('ui/theme/' . $config['theme'] . '/'); +$ui->setTemplateDir('ui/ui/'); $ui->setCompileDir('ui/compiled/'); $ui->setConfigDir('ui/conf/'); $ui->setCacheDir('ui/cache/'); diff --git a/ui/theme/default/app-settings.tpl b/ui/theme/default/app-settings.tpl deleted file mode 100644 index 5cf1fcca..00000000 --- a/ui/theme/default/app-settings.tpl +++ /dev/null @@ -1,94 +0,0 @@ -{include file="sections/header.tpl"} - -
-
-
-
-
{$_L['General_Settings']}
-
-
- -
- - {$_L['App_Name_Help_Text']} -
-
-
- -
- - {$_L['You_can_use_html_tag']} -
-
-
- -
- -
-
- - - -
-
Telegram Notification
-
-
- -
- -
-
-
- -
- -
-
-
-
Whatsapp Notification
-
-
- -
- -

Must include [text] & [number], it will be replaced.

-
-
-
-
Invoice
-
-
- -
- - {$_L['You_can_use_html_tag']} -
-
-
-
- -
-
-
-
- -
-
-
-{include file="sections/footer.tpl"} diff --git a/ui/theme/index.html b/ui/theme/index.html deleted file mode 100644 index 97579708..00000000 --- a/ui/theme/index.html +++ /dev/null @@ -1,8 +0,0 @@ - - - 403 Forbidden - - -

Directory access is forbidden.

- - \ No newline at end of file diff --git a/ui/theme/theme1/index.html b/ui/theme/theme1/index.html deleted file mode 100644 index 97579708..00000000 --- a/ui/theme/theme1/index.html +++ /dev/null @@ -1,8 +0,0 @@ - - - 403 Forbidden - - -

Directory access is forbidden.

- - \ No newline at end of file diff --git a/ui/theme/default/404.tpl b/ui/ui/404.tpl similarity index 97% rename from ui/theme/default/404.tpl rename to ui/ui/404.tpl index a62cda66..87e202e4 100644 --- a/ui/theme/default/404.tpl +++ b/ui/ui/404.tpl @@ -1,10 +1,10 @@ -{include file="sections/user-header.tpl"} - -
-
-

404

-

Coming Soon!! Next Version...

-
-
- +{include file="sections/user-header.tpl"} + +
+
+

404

+

Coming Soon!! Next Version...

+
+
+ {include file="sections/user-footer.tpl"} \ No newline at end of file diff --git a/ui/theme/default/a404.tpl b/ui/ui/a404.tpl similarity index 97% rename from ui/theme/default/a404.tpl rename to ui/ui/a404.tpl index fd30fa24..ba016d8f 100644 --- a/ui/theme/default/a404.tpl +++ b/ui/ui/a404.tpl @@ -1,10 +1,10 @@ -{include file="sections/header.tpl"} - -
-
-

404

-

Coming Soon!! Next Version...

-
-
- +{include file="sections/header.tpl"} + +
+
+

404

+

Coming Soon!! Next Version...

+
+
+ {include file="sections/footer.tpl"} \ No newline at end of file diff --git a/ui/theme/default/admin.tpl b/ui/ui/admin.tpl similarity index 97% rename from ui/theme/default/admin.tpl rename to ui/ui/admin.tpl index 1b7e3ec4..541ed45c 100644 --- a/ui/theme/default/admin.tpl +++ b/ui/ui/admin.tpl @@ -1,72 +1,72 @@ - - - - - - {$_title} - {$_L['Login']} - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-

{$_L['Logo']}

-
{$_L['Sign_In_Admin']}
-
- {if isset($notify)} - {$notify} - {/if} -
-
-
- - -
- -
- - -
- -
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- - + + + + + + {$_title} - {$_L['Login']} + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+

{$_L['Logo']}

+
{$_L['Sign_In_Admin']}
+
+ {if isset($notify)} + {$notify} + {/if} +
+
+
+ + +
+ +
+ + +
+ +
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ + \ No newline at end of file diff --git a/ui/theme/default/app-localisation.tpl b/ui/ui/app-localisation.tpl similarity index 98% rename from ui/theme/default/app-localisation.tpl rename to ui/ui/app-localisation.tpl index 99956d35..ef209449 100644 --- a/ui/theme/default/app-localisation.tpl +++ b/ui/ui/app-localisation.tpl @@ -1,80 +1,80 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Localisation']}
-
- -
-
- -
- -
-
-
- -
- -
-
-
- -
- -
- -
-
- -
- -
-
-
- -
- -
-
-
- -
- - {$_L['currency_help']} -
-
-
-
- -
-
-
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Localisation']}
+
+ +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+ +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + {$_L['currency_help']} +
+
+
+
+ +
+
+
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/autoload-pool.tpl b/ui/ui/autoload-pool.tpl similarity index 96% rename from ui/theme/default/autoload-pool.tpl rename to ui/ui/autoload-pool.tpl index 49d83a12..bb1b6d75 100644 --- a/ui/theme/default/autoload-pool.tpl +++ b/ui/ui/autoload-pool.tpl @@ -1,4 +1,4 @@ - -{foreach $d as $ds} - + +{foreach $d as $ds} + {/foreach} \ No newline at end of file diff --git a/ui/theme/default/autoload-server.tpl b/ui/ui/autoload-server.tpl similarity index 97% rename from ui/theme/default/autoload-server.tpl rename to ui/ui/autoload-server.tpl index 598fe42b..9260b1b9 100644 --- a/ui/theme/default/autoload-server.tpl +++ b/ui/ui/autoload-server.tpl @@ -1,4 +1,4 @@ - -{foreach $d as $ds} - + +{foreach $d as $ds} + {/foreach} \ No newline at end of file diff --git a/ui/theme/default/autoload.tpl b/ui/ui/autoload.tpl similarity index 97% rename from ui/theme/default/autoload.tpl rename to ui/ui/autoload.tpl index 7ebca31a..d96e117b 100644 --- a/ui/theme/default/autoload.tpl +++ b/ui/ui/autoload.tpl @@ -1,4 +1,4 @@ - -{foreach $d as $ds} - + +{foreach $d as $ds} + {/foreach} \ No newline at end of file diff --git a/ui/theme/default/bandwidth-add.tpl b/ui/ui/bandwidth-add.tpl similarity index 97% rename from ui/theme/default/bandwidth-add.tpl rename to ui/ui/bandwidth-add.tpl index 8aea8d88..35b67551 100644 --- a/ui/theme/default/bandwidth-add.tpl +++ b/ui/ui/bandwidth-add.tpl @@ -1,54 +1,54 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Add_Bandwidth']}
-
- -
-
- -
- -
-
-
- -
- -
-
- -
-
-
- -
- -
-
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Add_Bandwidth']}
+
+ +
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/bandwidth-edit.tpl b/ui/ui/bandwidth-edit.tpl similarity index 97% rename from ui/theme/default/bandwidth-edit.tpl rename to ui/ui/bandwidth-edit.tpl index 6cd3bb99..4a79c43f 100644 --- a/ui/theme/default/bandwidth-edit.tpl +++ b/ui/ui/bandwidth-edit.tpl @@ -1,55 +1,55 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Edit_Bandwidth']}
-
- -
- -
- -
- -
-
-
- -
- -
-
- -
-
-
- -
- -
-
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Edit_Bandwidth']}
+
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/bandwidth.tpl b/ui/ui/bandwidth.tpl similarity index 97% rename from ui/theme/default/bandwidth.tpl rename to ui/ui/bandwidth.tpl index c4ea9b72..d837b3a2 100644 --- a/ui/theme/default/bandwidth.tpl +++ b/ui/ui/bandwidth.tpl @@ -1,57 +1,57 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Bandwidth_Plans']}
-
-
-
- -
-   -
- - - - - - - - - - - - {foreach $d as $ds} - - - - - - - {/foreach} - -
{$_L['BW_Name']}{$_L['Rate_Download']}{$_L['Rate_Upload']}{$_L['Manage']}
{$ds['name_bw']}{$ds['rate_down']} {$ds['rate_down_unit']}{$ds['rate_up']} {$ds['rate_up_unit']} - {$_L['Edit']} - {$_L['Delete']} -
- {$paginator['contents']} -
-
-
-
- - +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Bandwidth_Plans']}
+
+
+
+ +
+   +
+ + + + + + + + + + + + {foreach $d as $ds} + + + + + + + {/foreach} + +
{$_L['BW_Name']}{$_L['Rate_Download']}{$_L['Rate_Upload']}{$_L['Manage']}
{$ds['name_bw']}{$ds['rate_down']} {$ds['rate_down_unit']}{$ds['rate_up']} {$ds['rate_up_unit']} + {$_L['Edit']} + {$_L['Delete']} +
+ {$paginator['contents']} +
+
+
+
+ + {include file="sections/footer.tpl"} \ No newline at end of file diff --git a/ui/theme/default/change-password.tpl b/ui/ui/change-password.tpl similarity index 97% rename from ui/theme/default/change-password.tpl rename to ui/ui/change-password.tpl index 8a4a35ec..3e592f9e 100644 --- a/ui/theme/default/change-password.tpl +++ b/ui/ui/change-password.tpl @@ -1,41 +1,41 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Change_Password']}
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Change_Password']}
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/customers-add.tpl b/ui/ui/customers-add.tpl similarity index 97% rename from ui/theme/default/customers-add.tpl rename to ui/ui/customers-add.tpl index 2f676a15..4a36329d 100644 --- a/ui/theme/default/customers-add.tpl +++ b/ui/ui/customers-add.tpl @@ -1,55 +1,55 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Add_Contact']}
-
- -
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
-
-
-
-
- - - -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Add_Contact']}
+
+ +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+
+
+
+
+ + + +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/customers-edit.tpl b/ui/ui/customers-edit.tpl similarity index 97% rename from ui/theme/default/customers-edit.tpl rename to ui/ui/customers-edit.tpl index 04d024a6..3b1b7746 100644 --- a/ui/theme/default/customers-edit.tpl +++ b/ui/ui/customers-edit.tpl @@ -1,62 +1,62 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Edit_Contact']}
-
- -
- -
- -
- -
-
-
- -
- -
-
-
- -
- - {$_L['password_change_help']} -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
-
-
-
-
- - -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Edit_Contact']}
+
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + {$_L['password_change_help']} +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+
+
+
+
+ + +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/customers.tpl b/ui/ui/customers.tpl similarity index 97% rename from ui/theme/default/customers.tpl rename to ui/ui/customers.tpl index faf69ba7..ce3316cc 100644 --- a/ui/theme/default/customers.tpl +++ b/ui/ui/customers.tpl @@ -1,60 +1,60 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Manage_Accounts']}
-
-
-
- -
-   -
- - - - - - - - - - - - - - {foreach $d as $ds} - - - - - - - - - {/foreach} - -
{$_L['Username']}{$_L['Full_Name']}{$_L['Phone_Number']}{$_L['Created_On']}{$_L['Recharge']}{$_L['Manage']}
{$ds['username']}{$ds['fullname']}{$ds['phonenumber']}{$ds['created_at']}{$_L['Recharge']} - {$_L['Edit']} - {$_L['Delete']} -
- {$paginator['contents']} -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Manage_Accounts']}
+
+
+
+ +
+   +
+ + + + + + + + + + + + + + {foreach $d as $ds} + + + + + + + + + {/foreach} + +
{$_L['Username']}{$_L['Full_Name']}{$_L['Phone_Number']}{$_L['Created_On']}{$_L['Recharge']}{$_L['Manage']}
{$ds['username']}{$ds['fullname']}{$ds['phonenumber']}{$ds['created_at']}{$_L['Recharge']} + {$_L['Edit']} + {$_L['Delete']} +
+ {$paginator['contents']} +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/dashboard.tpl b/ui/ui/dashboard.tpl similarity index 97% rename from ui/theme/default/dashboard.tpl rename to ui/ui/dashboard.tpl index 7519e80d..b0481791 100644 --- a/ui/theme/default/dashboard.tpl +++ b/ui/ui/dashboard.tpl @@ -1,214 +1,214 @@ -{include file="sections/header.tpl"} - -{if ($_admin['user_type']) eq 'Admin' || ($_admin['user_type']) eq 'Sales'} - -
-
-
-
-
-
-

{$_c['currency_code']} {number_format($iday,0,$_c['dec_point'],$_c['thousands_sep'])}

-
{$_L['Income_Today']}
-
-
-
-
- -
-
- -
-
-
-
-
-

{$_c['currency_code']} {number_format($imonth,0,$_c['dec_point'],$_c['thousands_sep'])}

-
{$_L['Income_This_Month']}
-
-
-
-
- -
-
- -
-
-
-
-
-

{$u_act}

-
{$_L['Users_Active']}
-
-
-
-
- -
-
- -
-
-
-
-
-

{$u_all}

-
{$_L['Total_Users']}
-
-
-
-
- -
-
-
-
-
-
-
Vouchers Stock
-
- - - - - - - - - - {foreach $plans as $stok} - - - - - - - {/foreach} - - - - - -
{$_L['Plan_Name']}unusedused
{$stok['name_plan']}{$stok['unused']}{$stok['used']}
Total{$stocks['unused']}{$stocks['used']}
-
-
-
-
{$_L['User_Expired_Today']}
-
- - - - - - - - - - - {$no = 1} - {foreach $expire as $expired} - - - - - - - - {/foreach} -
Id{$_L['Username']}{$_L['Created_On']}{$_L['Expires_On']}
{$no++}{$expired['username']}{date($_c['date_format'], strtotime($expired['recharged_on']))} {$expired['time']}{date($_c['date_format'], strtotime($expired['expiration']))} {$expired['time']}
-
-
-
- -
-
-
{$_L['Activity_Log']}
-
-
    - {foreach $dlog as $dlogs} -
  • - - {time_elapsed_string($dlogs['date'],true)} -

    {$dlogs['description']}

    -
  • - {/foreach} -
-
-
-
-
PHPMIXBILL
-
- {$_L['Welcome_Text_Admin']} -
-
-
- -
-{else} -
-
-
-
-

{$_L['Welcome']}, {$_user['fullname']}

-

{$_L['Welcome_Text_User']}

- -
-
-
-
-
-
-
-
{$_L['Account_Information']}
-
-
-
-

{$_L['Username']}

-

{$_bill['username']}

-
-
-

{$_L['Plan_Name']}

-

{$_bill['namebp']}

-
-
-

{$_L['Created_On']}

-

{date($_c['date_format'], strtotime($_bill['recharged_on']))} {$_bill['time']}

-
-
-

{$_L['Expires_On']}

-

{date($_c['date_format'], strtotime($_bill['expiration']))} {$_bill['time']}

-
-
- -
-
-
-
-{/if} - -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +{if ($_admin['user_type']) eq 'Admin' || ($_admin['user_type']) eq 'Sales'} + +
+
+
+
+
+
+

{$_c['currency_code']} {number_format($iday,0,$_c['dec_point'],$_c['thousands_sep'])}

+
{$_L['Income_Today']}
+
+
+
+
+ +
+
+ +
+
+
+
+
+

{$_c['currency_code']} {number_format($imonth,0,$_c['dec_point'],$_c['thousands_sep'])}

+
{$_L['Income_This_Month']}
+
+
+
+
+ +
+
+ +
+
+
+
+
+

{$u_act}

+
{$_L['Users_Active']}
+
+
+
+
+ +
+
+ +
+
+
+
+
+

{$u_all}

+
{$_L['Total_Users']}
+
+
+
+
+ +
+
+
+
+
+
+
Vouchers Stock
+
+ + + + + + + + + + {foreach $plans as $stok} + + + + + + + {/foreach} + + + + + +
{$_L['Plan_Name']}unusedused
{$stok['name_plan']}{$stok['unused']}{$stok['used']}
Total{$stocks['unused']}{$stocks['used']}
+
+
+
+
{$_L['User_Expired_Today']}
+
+ + + + + + + + + + + {$no = 1} + {foreach $expire as $expired} + + + + + + + + {/foreach} +
Id{$_L['Username']}{$_L['Created_On']}{$_L['Expires_On']}
{$no++}{$expired['username']}{date($_c['date_format'], strtotime($expired['recharged_on']))} {$expired['time']}{date($_c['date_format'], strtotime($expired['expiration']))} {$expired['time']}
+
+
+
+ +
+
+
{$_L['Activity_Log']}
+
+
    + {foreach $dlog as $dlogs} +
  • + + {time_elapsed_string($dlogs['date'],true)} +

    {$dlogs['description']}

    +
  • + {/foreach} +
+
+
+
+
PHPMIXBILL
+
+ {$_L['Welcome_Text_Admin']} +
+
+
+ +
+{else} +
+
+
+
+

{$_L['Welcome']}, {$_user['fullname']}

+

{$_L['Welcome_Text_User']}

+ +
+
+
+
+
+
+
+
{$_L['Account_Information']}
+
+
+
+

{$_L['Username']}

+

{$_bill['username']}

+
+
+

{$_L['Plan_Name']}

+

{$_bill['namebp']}

+
+
+

{$_L['Created_On']}

+

{date($_c['date_format'], strtotime($_bill['recharged_on']))} {$_bill['time']}

+
+
+

{$_L['Expires_On']}

+

{date($_c['date_format'], strtotime($_bill['expiration']))} {$_bill['time']}

+
+
+ +
+
+
+
+{/if} + +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/dbstatus.tpl b/ui/ui/dbstatus.tpl similarity index 96% rename from ui/theme/default/dbstatus.tpl rename to ui/ui/dbstatus.tpl index 6cd30c19..93ee18b9 100644 --- a/ui/theme/default/dbstatus.tpl +++ b/ui/ui/dbstatus.tpl @@ -1,43 +1,43 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Database_Status']}
-
- -
-
-
{$_L['Total_Database_Size']}: {$dbsize} MB
-   -
- - - - - - - - - - {foreach $tables as $tbl} - - - - - - {/foreach} - -
{$_L['Table_Name']}{$_L['Rows']}{$_L['Size']}
{$tbl['name']}{$tbl['rows']}{$tbl['size']} Kb
-
-
-
- -
-
-
-
- +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Database_Status']}
+
+ +
+
+
{$_L['Total_Database_Size']}: {$dbsize} MB
+   +
+ + + + + + + + + + {foreach $tables as $tbl} + + + + + + {/foreach} + +
{$_L['Table_Name']}{$_L['Rows']}{$_L['Size']}
{$tbl['name']}{$tbl['rows']}{$tbl['size']} Kb
+
+
+
+ +
+
+
+
+ {include file="sections/footer.tpl"} \ No newline at end of file diff --git a/ui/theme/default/fonts/font-awesome/css/font-awesome.min.css b/ui/ui/fonts/font-awesome/css/font-awesome.min.css similarity index 100% rename from ui/theme/default/fonts/font-awesome/css/font-awesome.min.css rename to ui/ui/fonts/font-awesome/css/font-awesome.min.css diff --git a/ui/theme/default/fonts/font-awesome/css/index.html b/ui/ui/fonts/font-awesome/css/index.html similarity index 100% rename from ui/theme/default/fonts/font-awesome/css/index.html rename to ui/ui/fonts/font-awesome/css/index.html diff --git a/ui/theme/default/fonts/font-awesome/fonts/fontawesome-webfontd41d.eot b/ui/ui/fonts/font-awesome/fonts/fontawesome-webfontd41d.eot similarity index 100% rename from ui/theme/default/fonts/font-awesome/fonts/fontawesome-webfontd41d.eot rename to ui/ui/fonts/font-awesome/fonts/fontawesome-webfontd41d.eot diff --git a/ui/theme/default/fonts/font-awesome/fonts/fontawesome-webfonte0a5.eot b/ui/ui/fonts/font-awesome/fonts/fontawesome-webfonte0a5.eot similarity index 100% rename from ui/theme/default/fonts/font-awesome/fonts/fontawesome-webfonte0a5.eot rename to ui/ui/fonts/font-awesome/fonts/fontawesome-webfonte0a5.eot diff --git a/ui/theme/default/fonts/font-awesome/fonts/fontawesome-webfonte0a5.svg b/ui/ui/fonts/font-awesome/fonts/fontawesome-webfonte0a5.svg similarity index 100% rename from ui/theme/default/fonts/font-awesome/fonts/fontawesome-webfonte0a5.svg rename to ui/ui/fonts/font-awesome/fonts/fontawesome-webfonte0a5.svg diff --git a/ui/theme/default/fonts/font-awesome/fonts/fontawesome-webfonte0a5.ttf b/ui/ui/fonts/font-awesome/fonts/fontawesome-webfonte0a5.ttf similarity index 100% rename from ui/theme/default/fonts/font-awesome/fonts/fontawesome-webfonte0a5.ttf rename to ui/ui/fonts/font-awesome/fonts/fontawesome-webfonte0a5.ttf diff --git a/ui/theme/default/fonts/font-awesome/fonts/fontawesome-webfonte0a5.woff b/ui/ui/fonts/font-awesome/fonts/fontawesome-webfonte0a5.woff similarity index 100% rename from ui/theme/default/fonts/font-awesome/fonts/fontawesome-webfonte0a5.woff rename to ui/ui/fonts/font-awesome/fonts/fontawesome-webfonte0a5.woff diff --git a/ui/theme/default/fonts/font-awesome/fonts/fontawesome-webfonte0a5.woff2 b/ui/ui/fonts/font-awesome/fonts/fontawesome-webfonte0a5.woff2 similarity index 100% rename from ui/theme/default/fonts/font-awesome/fonts/fontawesome-webfonte0a5.woff2 rename to ui/ui/fonts/font-awesome/fonts/fontawesome-webfonte0a5.woff2 diff --git a/ui/theme/default/fonts/font-awesome/fonts/index.html b/ui/ui/fonts/font-awesome/fonts/index.html similarity index 100% rename from ui/theme/default/fonts/font-awesome/fonts/index.html rename to ui/ui/fonts/font-awesome/fonts/index.html diff --git a/ui/theme/default/fonts/font-awesome/index.html b/ui/ui/fonts/font-awesome/index.html similarity index 100% rename from ui/theme/default/fonts/font-awesome/index.html rename to ui/ui/fonts/font-awesome/index.html diff --git a/ui/theme/default/fonts/index.html b/ui/ui/fonts/index.html similarity index 100% rename from ui/theme/default/fonts/index.html rename to ui/ui/fonts/index.html diff --git a/ui/theme/default/fonts/ionicons/css/index.html b/ui/ui/fonts/ionicons/css/index.html similarity index 100% rename from ui/theme/default/fonts/ionicons/css/index.html rename to ui/ui/fonts/ionicons/css/index.html diff --git a/ui/theme/default/fonts/ionicons/css/ionicons.min.css b/ui/ui/fonts/ionicons/css/ionicons.min.css similarity index 100% rename from ui/theme/default/fonts/ionicons/css/ionicons.min.css rename to ui/ui/fonts/ionicons/css/ionicons.min.css diff --git a/ui/theme/default/fonts/ionicons/fonts/index.html b/ui/ui/fonts/ionicons/fonts/index.html similarity index 100% rename from ui/theme/default/fonts/ionicons/fonts/index.html rename to ui/ui/fonts/ionicons/fonts/index.html diff --git a/ui/theme/default/fonts/ionicons/fonts/ionicons28b5.eot b/ui/ui/fonts/ionicons/fonts/ionicons28b5.eot similarity index 100% rename from ui/theme/default/fonts/ionicons/fonts/ionicons28b5.eot rename to ui/ui/fonts/ionicons/fonts/ionicons28b5.eot diff --git a/ui/theme/default/fonts/ionicons/fonts/ionicons28b5.svg b/ui/ui/fonts/ionicons/fonts/ionicons28b5.svg similarity index 100% rename from ui/theme/default/fonts/ionicons/fonts/ionicons28b5.svg rename to ui/ui/fonts/ionicons/fonts/ionicons28b5.svg diff --git a/ui/theme/default/fonts/ionicons/fonts/ionicons28b5.ttf b/ui/ui/fonts/ionicons/fonts/ionicons28b5.ttf similarity index 100% rename from ui/theme/default/fonts/ionicons/fonts/ionicons28b5.ttf rename to ui/ui/fonts/ionicons/fonts/ionicons28b5.ttf diff --git a/ui/theme/default/fonts/ionicons/fonts/ionicons28b5.woff b/ui/ui/fonts/ionicons/fonts/ionicons28b5.woff similarity index 100% rename from ui/theme/default/fonts/ionicons/fonts/ionicons28b5.woff rename to ui/ui/fonts/ionicons/fonts/ionicons28b5.woff diff --git a/ui/theme/default/fonts/ionicons/index.html b/ui/ui/fonts/ionicons/index.html similarity index 100% rename from ui/theme/default/fonts/ionicons/index.html rename to ui/ui/fonts/ionicons/index.html diff --git a/ui/theme/default/hotspot-add.tpl b/ui/ui/hotspot-add.tpl similarity index 97% rename from ui/theme/default/hotspot-add.tpl rename to ui/ui/hotspot-add.tpl index 37658531..abaf8b5c 100644 --- a/ui/theme/default/hotspot-add.tpl +++ b/ui/ui/hotspot-add.tpl @@ -1,122 +1,122 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Add_Plan']}
-
- -
-
- -
- -
-
-
- -
- {$_L['Unlimited']} - {$_L['Limited']} -
-
- - - -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Add_Plan']}
+
+ +
+
+ +
+ +
+
+
+ +
+ {$_L['Unlimited']} + {$_L['Limited']} +
+
+ + + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/hotspot-edit.tpl b/ui/ui/hotspot-edit.tpl similarity index 98% rename from ui/theme/default/hotspot-edit.tpl rename to ui/ui/hotspot-edit.tpl index 2cdbbef0..bae30c20 100644 --- a/ui/theme/default/hotspot-edit.tpl +++ b/ui/ui/hotspot-edit.tpl @@ -1,118 +1,118 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Edit_Plan']}
-
- -
- -
- -
- -
-
-
- -
- {$_L['Unlimited']} - {$_L['Limited']} -
-
- - - -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Edit_Plan']}
+
+ +
+ +
+ +
+ +
+
+
+ +
+ {$_L['Unlimited']} + {$_L['Limited']} +
+
+ + + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/hotspot.tpl b/ui/ui/hotspot.tpl similarity index 97% rename from ui/theme/default/hotspot.tpl rename to ui/ui/hotspot.tpl index 36b8e44f..720e6fae 100644 --- a/ui/theme/default/hotspot.tpl +++ b/ui/ui/hotspot.tpl @@ -1,67 +1,67 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Hotspot_Plans']}
-
-
-
- -
-   -
- - - - - - - - - - - - - - - - - {foreach $d as $ds} - - - - - - - - - - - - {/foreach} - -
{$_L['Plan_Name']}{$_L['Plan_Type']}{$_L['Bandwidth_Plans']}{$_L['Plan_Price']}{$_L['Time_Limit']}{$_L['Data_Limit']}{$_L['Plan_Validity']}{$_L['Routers']}{$_L['Manage']}
{$ds['name_plan']}{$ds['typebp']}{$ds['name_bw']}{$ds['price']}{$ds['time_limit']} {$ds['time_unit']}{$ds['data_limit']} {$ds['data_unit']}{$ds['validity']} {$ds['validity_unit']}{$ds['routers']} - {$_L['Edit']} - {$_L['Delete']} -
- {$paginator['contents']} - -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Hotspot_Plans']}
+
+
+
+ +
+   +
+ + + + + + + + + + + + + + + + + {foreach $d as $ds} + + + + + + + + + + + + {/foreach} + +
{$_L['Plan_Name']}{$_L['Plan_Type']}{$_L['Bandwidth_Plans']}{$_L['Plan_Price']}{$_L['Time_Limit']}{$_L['Data_Limit']}{$_L['Plan_Validity']}{$_L['Routers']}{$_L['Manage']}
{$ds['name_plan']}{$ds['typebp']}{$ds['name_bw']}{$ds['price']}{$ds['time_limit']} {$ds['time_unit']}{$ds['data_limit']} {$ds['data_unit']}{$ds['validity']} {$ds['validity_unit']}{$ds['routers']} + {$_L['Edit']} + {$_L['Delete']} +
+ {$paginator['contents']} + +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/images/admin.png b/ui/ui/images/admin.png similarity index 100% rename from ui/theme/default/images/admin.png rename to ui/ui/images/admin.png diff --git a/ui/theme/default/images/index.html b/ui/ui/images/index.html similarity index 100% rename from ui/theme/default/images/index.html rename to ui/ui/images/index.html diff --git a/ui/theme/default/images/logo.png b/ui/ui/images/logo.png similarity index 100% rename from ui/theme/default/images/logo.png rename to ui/ui/images/logo.png diff --git a/ui/theme/default/index.html b/ui/ui/index.html similarity index 100% rename from ui/theme/default/index.html rename to ui/ui/index.html diff --git a/ui/theme/default/invoice-print.tpl b/ui/ui/invoice-print.tpl similarity index 96% rename from ui/theme/default/invoice-print.tpl rename to ui/ui/invoice-print.tpl index d7f5d3c3..80c36eb9 100644 --- a/ui/theme/default/invoice-print.tpl +++ b/ui/ui/invoice-print.tpl @@ -1,58 +1,58 @@ - - - - {$_title} - - - - - - - - - -
-
- - - - -
-
-
- {$_c['CompanyName']}
- {$_c['address']}
- {$_c['phone']}
-
- ============================================
- INVOICE: {$d['invoice']} - {$_L['Date']} : {$date}
- {$_L['Sales']} : {$_admin['fullname']}
- ============================================
- {$_L['Type']} : {$d['type']}
- {$_L['Plan_Name']} : {$d['plan_name']}
- {$_L['Plan_Price']} : {$_c['currency_code']} {number_format($d['price'],2,$_c['dec_point'],$_c['thousands_sep'])}
-
- {$_L['Username']} : {$d['username']}
- {$_L['Password']} : **********
-
- {$_L['Created_On']} : {date($_c['date_format'], strtotime($d['recharged_on']))} {$d['time']}
- {$_L['Expires_On']} : {date($_c['date_format'], strtotime($d['expiration']))} {$d['time']}
- ============================================
-
{$_c['note']}
-
-
-
-
- - - -{if isset($xfooter)} - {$xfooter} -{/if} - - - + + + + {$_title} + + + + + + + + + +
+
+ + + + +
+
+
+ {$_c['CompanyName']}
+ {$_c['address']}
+ {$_c['phone']}
+
+ ============================================
+ INVOICE: {$d['invoice']} - {$_L['Date']} : {$date}
+ {$_L['Sales']} : {$_admin['fullname']}
+ ============================================
+ {$_L['Type']} : {$d['type']}
+ {$_L['Plan_Name']} : {$d['plan_name']}
+ {$_L['Plan_Price']} : {$_c['currency_code']} {number_format($d['price'],2,$_c['dec_point'],$_c['thousands_sep'])}
+
+ {$_L['Username']} : {$d['username']}
+ {$_L['Password']} : **********
+
+ {$_L['Created_On']} : {date($_c['date_format'], strtotime($d['recharged_on']))} {$d['time']}
+ {$_L['Expires_On']} : {date($_c['date_format'], strtotime($d['expiration']))} {$d['time']}
+ ============================================
+
{$_c['note']}
+
+
+
+
+ + + +{if isset($xfooter)} + {$xfooter} +{/if} + + + diff --git a/ui/theme/default/invoice.tpl b/ui/ui/invoice.tpl similarity index 97% rename from ui/theme/default/invoice.tpl rename to ui/ui/invoice.tpl index 6a1fb70b..81cb0985 100644 --- a/ui/theme/default/invoice.tpl +++ b/ui/ui/invoice.tpl @@ -1,48 +1,48 @@ -{include file="sections/header.tpl"} - -
-
-
-
PRINT INVOICE
-
-
-
-
- {$_c['CompanyName']}
- {$_c['address']}
- {$_c['phone']}
-
- ====================================================
- INVOICE: {$in['invoice']} - {$_L['Date']} : {$date}
- {$_L['Sales']} : {$_admin['fullname']}
- ====================================================
- {$_L['Type']} : {$in['type']}
- {$_L['Plan_Name']} : {$in['plan_name']}
- {$_L['Plan_Price']} : {$_c['currency_code']} {number_format($in['price'],2,$_c['dec_point'],$_c['thousands_sep'])}
-
- {$_L['Username']} : {$in['username']}
- {$_L['Password']} : **********
-
- {$_L['Created_On']} : {date($_c['date_format'], strtotime($in['recharged_on']))} {$in['time']}
- {$_L['Expires_On']} : {date($_c['date_format'], strtotime($in['expiration']))} {$in['time']}
- =====================================================
-
{$_c['note']}
-
-
-
- - - {$_L['Finish']} -
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
PRINT INVOICE
+
+
+
+
+ {$_c['CompanyName']}
+ {$_c['address']}
+ {$_c['phone']}
+
+ ====================================================
+ INVOICE: {$in['invoice']} - {$_L['Date']} : {$date}
+ {$_L['Sales']} : {$_admin['fullname']}
+ ====================================================
+ {$_L['Type']} : {$in['type']}
+ {$_L['Plan_Name']} : {$in['plan_name']}
+ {$_L['Plan_Price']} : {$_c['currency_code']} {number_format($in['price'],2,$_c['dec_point'],$_c['thousands_sep'])}
+
+ {$_L['Username']} : {$in['username']}
+ {$_L['Password']} : **********
+
+ {$_L['Created_On']} : {date($_c['date_format'], strtotime($in['recharged_on']))} {$in['time']}
+ {$_L['Expires_On']} : {date($_c['date_format'], strtotime($in['expiration']))} {$in['time']}
+ =====================================================
+
{$_c['note']}
+
+
+
+ + + {$_L['Finish']} +
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/language-add.tpl b/ui/ui/language-add.tpl similarity index 97% rename from ui/theme/default/language-add.tpl rename to ui/ui/language-add.tpl index 7a6203f5..11e43623 100644 --- a/ui/theme/default/language-add.tpl +++ b/ui/ui/language-add.tpl @@ -1,39 +1,39 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Add_Plan']}
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - Or {$_L['Cancel']} -
-
-
-
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Add_Plan']}
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + Or {$_L['Cancel']} +
+
+
+
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/login.tpl b/ui/ui/login.tpl similarity index 97% rename from ui/theme/default/login.tpl rename to ui/ui/login.tpl index e95f9091..199141f8 100644 --- a/ui/theme/default/login.tpl +++ b/ui/ui/login.tpl @@ -1,82 +1,82 @@ - - - - - - {$_title} - {$_L['Login']} - - - - - - - - - - - - -
- -
-

{$_c['CompanyName']}

-
-
- {if isset($notify)} -
-
- {$notify} -
-
- {/if} -
-
-
-
{$_L['Announcement']}
-
- {include file="$_path/../pages/Announcement.html"} -
-
-
-
-
-
{$_L['Sign_In_Member']}
-
-
-
-
- - -
- -
- - -
- - -
-
- -
- -
-
-
-
-
-
-
-
- - + + + + + + {$_title} - {$_L['Login']} + + + + + + + + + + + + +
+ +
+

{$_c['CompanyName']}

+
+
+ {if isset($notify)} +
+
+ {$notify} +
+
+ {/if} +
+
+
+
{$_L['Announcement']}
+
+ {include file="$_path/../pages/Announcement.html"} +
+
+
+
+
+
{$_L['Sign_In_Member']}
+
+
+
+
+ + +
+ +
+ + +
+ + +
+
+ +
+ +
+
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/ui/theme/default/page-edit.tpl b/ui/ui/page-edit.tpl similarity index 100% rename from ui/theme/default/page-edit.tpl rename to ui/ui/page-edit.tpl diff --git a/ui/theme/default/pool-add.tpl b/ui/ui/pool-add.tpl similarity index 97% rename from ui/theme/default/pool-add.tpl rename to ui/ui/pool-add.tpl index 16805b34..2ac2bf95 100644 --- a/ui/theme/default/pool-add.tpl +++ b/ui/ui/pool-add.tpl @@ -1,45 +1,45 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Add_Pool']}
-
- -
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Add_Pool']}
+
+ +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + Or {$_L['Cancel']} +
+
+
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/pool-edit.tpl b/ui/ui/pool-edit.tpl similarity index 97% rename from ui/theme/default/pool-edit.tpl rename to ui/ui/pool-edit.tpl index ea7cd368..af2d87d4 100644 --- a/ui/theme/default/pool-edit.tpl +++ b/ui/ui/pool-edit.tpl @@ -1,44 +1,44 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Edit_Pool']}
-
- -
- -
- -
- -
-
-
- -
- -
-
-
- -
- - -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Edit_Pool']}
+
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/pool.tpl b/ui/ui/pool.tpl similarity index 97% rename from ui/theme/default/pool.tpl rename to ui/ui/pool.tpl index b14f70dd..f4614bc1 100644 --- a/ui/theme/default/pool.tpl +++ b/ui/ui/pool.tpl @@ -1,59 +1,59 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Pool']}
-
-
-
- - -
-   -
- - - - - - - - - - - - {$no = 1} - {foreach $d as $ds} - - - - - - - - {/foreach} - -
#{$_L['Pool_Name']}{$_L['Range_IP']}{$_L['Routers']}{$_L['Manage']}
{$no++}{$ds['pool_name']}{$ds['range_ip']}{$ds['routers']} - {$_L['Edit']} - {$_L['Delete']} -
- {$paginator['contents']} -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Pool']}
+
+
+
+ + +
+   +
+ + + + + + + + + + + + {$no = 1} + {foreach $d as $ds} + + + + + + + + {/foreach} + +
#{$_L['Pool_Name']}{$_L['Range_IP']}{$_L['Routers']}{$_L['Manage']}
{$no++}{$ds['pool_name']}{$ds['range_ip']}{$ds['routers']} + {$_L['Edit']} + {$_L['Delete']} +
+ {$paginator['contents']} +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/pppoe-add.tpl b/ui/ui/pppoe-add.tpl similarity index 97% rename from ui/theme/default/pppoe-add.tpl rename to ui/ui/pppoe-add.tpl index 96a99182..8a0edb84 100644 --- a/ui/theme/default/pppoe-add.tpl +++ b/ui/ui/pppoe-add.tpl @@ -1,76 +1,76 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Add_Plan']}
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
-
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Add_Plan']}
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/pppoe-edit.tpl b/ui/ui/pppoe-edit.tpl similarity index 97% rename from ui/theme/default/pppoe-edit.tpl rename to ui/ui/pppoe-edit.tpl index 95113bff..b40db21d 100644 --- a/ui/theme/default/pppoe-edit.tpl +++ b/ui/ui/pppoe-edit.tpl @@ -1,73 +1,73 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Edit_Plan']}
-
-
- -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
-
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Edit_Plan']}
+
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/pppoe.tpl b/ui/ui/pppoe.tpl similarity index 97% rename from ui/theme/default/pppoe.tpl rename to ui/ui/pppoe.tpl index 35f03d23..e677eca1 100644 --- a/ui/theme/default/pppoe.tpl +++ b/ui/ui/pppoe.tpl @@ -1,62 +1,62 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['PPPOE_Plans']}
-
-
-
- -
-   -
- - - - - - - - - - - - - - - {foreach $d as $ds} - - - - - - - - - - {/foreach} - -
{$_L['Plan_Name']}{$_L['Bandwidth_Plans']}{$_L['Plan_Price']}{$_L['Plan_Validity']}{$_L['Pool']}{$_L['Routers']}{$_L['Manage']}
{$ds['name_plan']}{$ds['name_bw']}{$ds['price']}{$ds['validity']} {$ds['validity_unit']}{$ds['pool']}{$ds['routers']} - {$_L['Edit']} - {$_L['Delete']} -
- {$paginator['contents']} -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['PPPOE_Plans']}
+
+
+
+ +
+   +
+ + + + + + + + + + + + + + + {foreach $d as $ds} + + + + + + + + + + {/foreach} + +
{$_L['Plan_Name']}{$_L['Bandwidth_Plans']}{$_L['Plan_Price']}{$_L['Plan_Validity']}{$_L['Pool']}{$_L['Routers']}{$_L['Manage']}
{$ds['name_plan']}{$ds['name_bw']}{$ds['price']}{$ds['validity']} {$ds['validity_unit']}{$ds['pool']}{$ds['routers']} + {$_L['Edit']} + {$_L['Delete']} +
+ {$paginator['contents']} +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/prepaid-edit.tpl b/ui/ui/prepaid-edit.tpl similarity index 97% rename from ui/theme/default/prepaid-edit.tpl rename to ui/ui/prepaid-edit.tpl index 3ccb8186..6d28857f 100644 --- a/ui/theme/default/prepaid-edit.tpl +++ b/ui/ui/prepaid-edit.tpl @@ -1,59 +1,59 @@ -{include file="sections/header.tpl"} - -
-
-
-

{$_L['Recharge_Account']}

-
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
-
- - -
-
-
-
- -
-
- - -
-
-
- -
-
- - Or {$_L['Cancel']} -
-
-
-
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+

{$_L['Recharge_Account']}

+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/prepaid.tpl b/ui/ui/prepaid.tpl similarity index 97% rename from ui/theme/default/prepaid.tpl rename to ui/ui/prepaid.tpl index b12686b2..67661c1d 100644 --- a/ui/theme/default/prepaid.tpl +++ b/ui/ui/prepaid.tpl @@ -1,65 +1,65 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Prepaid_User']}
-
-
-
- -
-   -
- - - - - - - - - - - - - - - - {foreach $d as $ds} - - - - - - - - - - - {/foreach} - -
{$_L['Username']}{$_L['Plan_Name']}{$_L['Type']}{$_L['Created_On']}{$_L['Expires_On']}{$_L['Method']}{$_L['Routers']}{$_L['Manage']}
{$ds['username']}{$ds['namebp']}{$ds['type']}{$ds['recharged_on']} {$ds['time']}{$ds['expiration']} {$ds['time']}{$ds['method']}{$ds['routers']} - {$_L['Edit']} - {$_L['Delete']} -
- {$paginator['contents']} -
-
-
-
- - -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Prepaid_User']}
+
+
+
+ +
+   +
+ + + + + + + + + + + + + + + + {foreach $d as $ds} + + + + + + + + + + + {/foreach} + +
{$_L['Username']}{$_L['Plan_Name']}{$_L['Type']}{$_L['Created_On']}{$_L['Expires_On']}{$_L['Method']}{$_L['Routers']}{$_L['Manage']}
{$ds['username']}{$ds['namebp']}{$ds['type']}{$ds['recharged_on']} {$ds['time']}{$ds['expiration']} {$ds['time']}{$ds['method']}{$ds['routers']} + {$_L['Edit']} + {$_L['Delete']} +
+ {$paginator['contents']} +
+
+
+
+ + +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/print-by-date.tpl b/ui/ui/print-by-date.tpl similarity index 97% rename from ui/theme/default/print-by-date.tpl rename to ui/ui/print-by-date.tpl index 68940cb4..1d9c770d 100644 --- a/ui/theme/default/print-by-date.tpl +++ b/ui/ui/print-by-date.tpl @@ -1,72 +1,72 @@ - - - - {$_title} - - - - - - - - - -
-
-
-

{$_L['All_Transactions_at_Date']}: {date($_c['date_format'], strtotime($mdate))}

- - - - - - - - - - {foreach $d as $ds} - - - - - - - - - - - {/foreach} -
{$_L['Username']}{$_L['Plan_Name']}{$_L['Type']}{$_L['Plan_Price']}{$_L['Created_On']}{$_L['Expires_On']}{$_L['Method']}{$_L['Routers']}
{$ds['username']}{$ds['plan_name']}{$ds['type']}{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}{$ds['method']}{$ds['routers']}
-
-

{$_L['Total_Income']}:

-

{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}

-
-
- -
-
- - -{if isset($xfooter)} - {$xfooter} -{/if} - - - + + + + {$_title} + + + + + + + + + +
+
+
+

{$_L['All_Transactions_at_Date']}: {date($_c['date_format'], strtotime($mdate))}

+ + + + + + + + + + {foreach $d as $ds} + + + + + + + + + + + {/foreach} +
{$_L['Username']}{$_L['Plan_Name']}{$_L['Type']}{$_L['Plan_Price']}{$_L['Created_On']}{$_L['Expires_On']}{$_L['Method']}{$_L['Routers']}
{$ds['username']}{$ds['plan_name']}{$ds['type']}{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}{$ds['method']}{$ds['routers']}
+
+

{$_L['Total_Income']}:

+

{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}

+
+
+ +
+
+ + +{if isset($xfooter)} + {$xfooter} +{/if} + + + \ No newline at end of file diff --git a/ui/theme/default/print-by-period.tpl b/ui/ui/print-by-period.tpl similarity index 97% rename from ui/theme/default/print-by-period.tpl rename to ui/ui/print-by-period.tpl index 5d4d072d..ed74e66b 100644 --- a/ui/theme/default/print-by-period.tpl +++ b/ui/ui/print-by-period.tpl @@ -1,72 +1,72 @@ - - - - {$_title} - - - - - - - - - -
-
-
-

{$_L['All_Transactions_at_Date']}: {date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}

- - - - - - - - - - {foreach $d as $ds} - - - - - - - - - - - {/foreach} -
{$_L['Username']}{$_L['Plan_Name']}{$_L['Type']}{$_L['Plan_Price']}{$_L['Created_On']}{$_L['Expires_On']}{$_L['Method']}{$_L['Routers']}
{$ds['username']}{$ds['plan_name']}{$ds['type']}{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}{$ds['method']}{$ds['routers']}
-
-

{$_L['Total_Income']}:

-

{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}

-
-
- -
-
- - -{if isset($xfooter)} - {$xfooter} -{/if} - - - + + + + {$_title} + + + + + + + + + +
+
+
+

{$_L['All_Transactions_at_Date']}: {date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}

+ + + + + + + + + + {foreach $d as $ds} + + + + + + + + + + + {/foreach} +
{$_L['Username']}{$_L['Plan_Name']}{$_L['Type']}{$_L['Plan_Price']}{$_L['Created_On']}{$_L['Expires_On']}{$_L['Method']}{$_L['Routers']}
{$ds['username']}{$ds['plan_name']}{$ds['type']}{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}{$ds['method']}{$ds['routers']}
+
+

{$_L['Total_Income']}:

+

{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}

+
+
+ +
+
+ + +{if isset($xfooter)} + {$xfooter} +{/if} + + + \ No newline at end of file diff --git a/ui/theme/default/print-voucher.tpl b/ui/ui/print-voucher.tpl similarity index 100% rename from ui/theme/default/print-voucher.tpl rename to ui/ui/print-voucher.tpl diff --git a/ui/theme/default/recharge-user.tpl b/ui/ui/recharge-user.tpl similarity index 97% rename from ui/theme/default/recharge-user.tpl rename to ui/ui/recharge-user.tpl index 12dca58f..6ecc30ca 100644 --- a/ui/theme/default/recharge-user.tpl +++ b/ui/ui/recharge-user.tpl @@ -1,62 +1,62 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Recharge_Account']}
-
-
-
- -
- -
-
-
- -
- {$_L['Hotspot_Plans']} - {$_L['PPPOE_Plans']} -
-
-
- -
- -
-
- -
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
-
-
-
-
- - -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Recharge_Account']}
+
+
+
+ +
+ +
+
+
+ +
+ {$_L['Hotspot_Plans']} + {$_L['PPPOE_Plans']} +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+
+
+
+
+ + +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/recharge.tpl b/ui/ui/recharge.tpl similarity index 97% rename from ui/theme/default/recharge.tpl rename to ui/ui/recharge.tpl index 1e81eaf9..46a43b1a 100644 --- a/ui/theme/default/recharge.tpl +++ b/ui/ui/recharge.tpl @@ -1,57 +1,57 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Recharge_Account']}
-
-
-
- -
- -
-
-
- -
- {$_L['Hotspot_Plans']} - {$_L['PPPOE_Plans']} -
-
-
- -
- -
-
- -
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
-
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Recharge_Account']}
+
+
+
+ +
+ +
+
+
+ +
+ {$_L['Hotspot_Plans']} + {$_L['PPPOE_Plans']} +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/refill.tpl b/ui/ui/refill.tpl similarity index 97% rename from ui/theme/default/refill.tpl rename to ui/ui/refill.tpl index 17f073af..adcf7bbd 100644 --- a/ui/theme/default/refill.tpl +++ b/ui/ui/refill.tpl @@ -1,39 +1,39 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Recharge_Account']}
-
-
-
- -
- -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
-
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Recharge_Account']}
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/register.tpl b/ui/ui/register.tpl similarity index 100% rename from ui/theme/default/register.tpl rename to ui/ui/register.tpl diff --git a/ui/theme/default/reports-daily.tpl b/ui/ui/reports-daily.tpl similarity index 97% rename from ui/theme/default/reports-daily.tpl rename to ui/ui/reports-daily.tpl index 7e7c79f9..51b6ca84 100644 --- a/ui/theme/default/reports-daily.tpl +++ b/ui/ui/reports-daily.tpl @@ -1,61 +1,61 @@ -{include file="sections/header.tpl"} - -
-
-
-
- -
-
-
-

{$_L['All_Transactions_at_Date']}:

-

{date($_c['date_format'], strtotime($mdate))} {$mtime}

-
- -
- - - - - - - - - - - - - - - {foreach $d as $ds} - - - - - - - - - - - {/foreach} - -
{$_L['Username']}{$_L['Type']}{$_L['Plan_Name']}{$_L['Plan_Price']}{$_L['Created_On']}{$_L['Expires_On']}{$_L['Method']}{$_L['Routers']}
{$ds['username']}{$ds['type']}{$ds['plan_name']}{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}{$ds['method']}{$ds['routers']}
- - {$paginator['contents']} - -
-

{$_L['Total_Income']}:

-

{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}

-
-

{$_L['All_Transactions_at_Date']}: {date($_c['date_format'], strtotime($mdate))} {$mtime}

-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
+ +
+
+
+

{$_L['All_Transactions_at_Date']}:

+

{date($_c['date_format'], strtotime($mdate))} {$mtime}

+
+ +
+ + + + + + + + + + + + + + + {foreach $d as $ds} + + + + + + + + + + + {/foreach} + +
{$_L['Username']}{$_L['Type']}{$_L['Plan_Name']}{$_L['Plan_Price']}{$_L['Created_On']}{$_L['Expires_On']}{$_L['Method']}{$_L['Routers']}
{$ds['username']}{$ds['type']}{$ds['plan_name']}{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}{$ds['method']}{$ds['routers']}
+ + {$paginator['contents']} + +
+

{$_L['Total_Income']}:

+

{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}

+
+

{$_L['All_Transactions_at_Date']}: {date($_c['date_format'], strtotime($mdate))} {$mtime}

+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/reports-period-view.tpl b/ui/ui/reports-period-view.tpl similarity index 97% rename from ui/theme/default/reports-period-view.tpl rename to ui/ui/reports-period-view.tpl index e72fffa8..72c8a3b5 100644 --- a/ui/theme/default/reports-period-view.tpl +++ b/ui/ui/reports-period-view.tpl @@ -1,69 +1,69 @@ -{include file="sections/header.tpl"} - -
-
-
-
- -
-
-
-

{$_L['All_Transactions_at_Date']}:

-

{$stype} [{date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}]

-
-
-
- - - - -
-
- - - - -
-
-
- - - - - - - - - - - - - - - {foreach $d as $ds} - - - - - - - - - - - {/foreach} - -
{$_L['Username']}{$_L['Type']}{$_L['Plan_Name']}{$_L['Plan_Price']}{$_L['Created_On']}{$_L['Expires_On']}{$_L['Method']}{$_L['Routers']}
{$ds['username']}{$ds['type']}{$ds['plan_name']}{$_c['currency_code']} {number_format($ds['price'],0,$_c['dec_point'],$_c['thousands_sep'])}{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}{$ds['method']}{$ds['routers']}
- -
-

{$_L['Total_Income']}:

-

{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}

-
-

{$stype} [{date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}]

-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
+ +
+
+
+

{$_L['All_Transactions_at_Date']}:

+

{$stype} [{date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}]

+
+
+
+ + + + +
+
+ + + + +
+
+
+ + + + + + + + + + + + + + + {foreach $d as $ds} + + + + + + + + + + + {/foreach} + +
{$_L['Username']}{$_L['Type']}{$_L['Plan_Name']}{$_L['Plan_Price']}{$_L['Created_On']}{$_L['Expires_On']}{$_L['Method']}{$_L['Routers']}
{$ds['username']}{$ds['type']}{$ds['plan_name']}{$_c['currency_code']} {number_format($ds['price'],0,$_c['dec_point'],$_c['thousands_sep'])}{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}{$ds['method']}{$ds['routers']}
+ +
+

{$_L['Total_Income']}:

+

{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}

+
+

{$stype} [{date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}]

+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/reports-period.tpl b/ui/ui/reports-period.tpl similarity index 97% rename from ui/theme/default/reports-period.tpl rename to ui/ui/reports-period.tpl index 0847f071..96a987c3 100644 --- a/ui/theme/default/reports-period.tpl +++ b/ui/ui/reports-period.tpl @@ -1,49 +1,49 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Period_Reports']}
-
-
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
-
- -
- -
-
- -
-
- -
-
-
-
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Period_Reports']}
+
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/routers-add.tpl b/ui/ui/routers-add.tpl similarity index 97% rename from ui/theme/default/routers-add.tpl rename to ui/ui/routers-add.tpl index 7a6f3b03..92d97b5c 100644 --- a/ui/theme/default/routers-add.tpl +++ b/ui/ui/routers-add.tpl @@ -1,55 +1,55 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Add_Router']}
-
- -
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- - -
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Add_Router']}
+
+ +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ + +
+
+ + Or {$_L['Cancel']} +
+
+
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/routers-edit.tpl b/ui/ui/routers-edit.tpl similarity index 97% rename from ui/theme/default/routers-edit.tpl rename to ui/ui/routers-edit.tpl index 754c755d..550989a0 100644 --- a/ui/theme/default/routers-edit.tpl +++ b/ui/ui/routers-edit.tpl @@ -1,55 +1,55 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Edit_Router']}
-
- -
- -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Edit_Router']}
+
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/routers.tpl b/ui/ui/routers.tpl similarity index 97% rename from ui/theme/default/routers.tpl rename to ui/ui/routers.tpl index 1e3f41ef..7119449e 100644 --- a/ui/theme/default/routers.tpl +++ b/ui/ui/routers.tpl @@ -1,60 +1,60 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Routers']}
-
-
-
- - -
-   -
-
- - - - - - - - - - - - {foreach $d as $ds} - - - - - - - - {/foreach} - -
{$_L['Router_Name']}{$_L['IP_Address']}{$_L['Username']}{$_L['Description']}{$_L['Manage']}
{$ds['name']}{$ds['ip_address']}{$ds['username']}{$ds['description']} - {$_L['Edit']} - {$_L['Delete']} -
-
- {$paginator['contents']} -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Routers']}
+
+
+
+ + +
+   +
+
+ + + + + + + + + + + + {foreach $d as $ds} + + + + + + + + {/foreach} + +
{$_L['Router_Name']}{$_L['IP_Address']}{$_L['Username']}{$_L['Description']}{$_L['Manage']}
{$ds['name']}{$ds['ip_address']}{$ds['username']}{$ds['description']} + {$_L['Edit']} + {$_L['Delete']} +
+
+ {$paginator['contents']} +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/scripts/app.js b/ui/ui/scripts/app.js similarity index 97% rename from ui/theme/default/scripts/app.js rename to ui/ui/scripts/app.js index 9df3bcea..e59a72e3 100644 --- a/ui/theme/default/scripts/app.js +++ b/ui/ui/scripts/app.js @@ -1,160 +1,160 @@ -jQuery(function(){ - "use strict"; - var MateriaApp=function(){ - this.isMobile=null, - this.navHorizontal=!1, - this.fixedHeader=!0, - this.themeActive="theme-zero", - this.navFull=!1, - this.navOffCanvas=!1, - this.mainContainer=$(".main-container"), - this.siteHead=$(".site-head"), - this.siteSettings=$(".site-settings"), - this.app=$(".app"), - this.navWrap=$(".nav-wrap"), - this.contentContainer=$(".content-container"), - this._init() - }; - MateriaApp.prototype._init=function(){ - this._checkMobile(), - this.toggleSiteNav(), - this.initDefaultSettings(), - this.initRipple(), - this.toggleSettingsBox(), - this.initPerfectScrollbars(), - this.toggleFullScreen(), - this.toggleFloatingSidebar(), - this.initNavAccordion() - }, - MateriaApp.prototype.initDefaultSettings=function(){ - function onNavHorizontal(){ - this.checked?(that.navHorizontal=!0, - that.mainContainer.addClass("nav-horizontal")):(that.navHorizontal=!1, - that.mainContainer.removeClass("nav-horizontal")), - setTimeout(function(){ - sQuery.navHorizontal=that.navHorizontal, - statesQuery.put(sQuery)}) - } - function onFixedHeader(){ - this.checked?(that.fixedHeader=!0,that.siteHead.addClass("fixedHeader"), - that.contentContainer.addClass("fixedHeader")):(that.fixedHeader=!1, - that.siteHead.removeClass("fixedHeader"), - that.contentContainer.removeClass("fixedHeader")), - setTimeout(function(){ - sQuery.fixedHeader=that.fixedHeader, - statesQuery.put(sQuery) - }) - } - function onNavFull(){ - var elems=["body",".main-container",".nav-wrap",".content-container"]; - this.checked?(that.navFull=!0,elems.forEach( - function(el){$(el).addClass("nav-expand")})):(that.navFull=!1, - elems.forEach(function(el){$(el).removeClass("nav-expand")})), - setTimeout(function(){sQuery.navFull=that.navFull,statesQuery.put(sQuery)}) - } - function onThemeChange(e){ - var $t=$(this), - $list=that.siteSettings.find("#themeColor li"); - $list.removeClass("active"), - $t.addClass("active"), - that.app.removeClass(that.themeActive), - that.themeActive=$t.data("theme"), - sQuery.themeActive=that.themeActive, - statesQuery.put(sQuery), - that.app.addClass(that.themeActive), - e.preventDefault() - } - var that=this, - SETTINGS_STATES="_setting-states", - statesQuery={get:function(){return JSON.parse(localStorage.getItem(SETTINGS_STATES))}, - put:function(states){localStorage.setItem(SETTINGS_STATES,JSON.stringify(states))}}, - sQuery=statesQuery.get()||{navHorizontal:that.navHorizontal,fixedHeader:that.fixedHeader,navFull:that.navFull,themeActive:that.themeActive}; - if(sQuery&&(this.navHorizontal=sQuery.navHorizontal, - this.fixedHeader=sQuery.fixedHeader, - this.navFull=sQuery.navFull, - this.themeActive=sQuery.themeActive), - this.siteSettings.find("#navHorizontal").on("change",onNavHorizontal), - this.siteSettings.find("#fixedHeader").on("change",onFixedHeader), - this.siteSettings.find("#navFull").on("change",onNavFull), - this.siteSettings.find("#themeColor li").on("click touchstart",onThemeChange), - this.app.addClass(this.themeActive), - this.navFull){ - this.siteSettings.find("#navFull")[0].checked=!0; - var elems=["body",".main-container",".nav-wrap",".content-container"]; - elems.forEach(function(el){$(el).addClass("nav-expand")}) - } - this.navHorizontal&&(this.siteSettings.find("#navHorizontal")[0].checked=!0, - this.mainContainer.addClass("nav-horizontal")), - this.fixedHeader&&(this.siteSettings.find("#fixedHeader")[0].checked=!0, - this.siteHead.addClass("fixedHeader"), - this.contentContainer.addClass("fixedHeader")), - this.navOffCanvas&&this.navWrap.addClass("nav-offcanvas") - }, - MateriaApp.prototype.initRipple=function(){ - Waves.attach(".btn"), - Waves.init({duration:900,delay:300}), - Waves.attach(".nav-wrap .site-nav .nav-list li"), - Waves.attach(".md-button:not(.md-no-ink)") - }, - MateriaApp.prototype._checkMobile=function(){ - var mm=window.matchMedia("(max-width: 767px)"); - this.isMobile=mm.matches?!0:!1; - var that=this;mm.addListener(function(m){that.isMobile=m.matches?!0:!1}) - }, - MateriaApp.prototype.toggleSiteNav=function(){ - this.siteHead.find(".nav-trigger").on("click touchstart",function(e){ - var elems=["body",".main-container",".nav-wrap",".content-container"]; - elems.forEach(function(el){ - $(el).toggleClass("nav-expand"),".nav-wrap"==el&&$(el).toggleClass("nav-offcanvas") - }),e.preventDefault() - }) - }, - MateriaApp.prototype.toggleSettingsBox=function(){ - this.siteSettings.find(".trigger").on("click touchstart", - function(e){$(".site-settings").toggleClass("open"),e.preventDefault()}) - }, - MateriaApp.prototype.initPerfectScrollbars=function(){ - var $el=$("[data-perfect-scrollbar]"); - $el.each(function(){ - var $t=$(this); - $t.perfectScrollbar({suppressScrollX:!0}), - setInterval(function(){ - $t[0].scrollHeight>=$t[0].clientHeight&&$t.perfectScrollbar("update") - },400) - }) - }, - MateriaApp.prototype.toggleFullScreen=function(){ - $(".site-head .fullscreen").on("click",function(e){screenfull.toggle(),e.preventDefault()}) - }, - MateriaApp.prototype.toggleFloatingSidebar=function(){ - $(".site-head .floating-sidebar > a").on("click",function(e){$(this).parent().toggleClass("open"),e.preventDefault()}) - }, - MateriaApp.prototype.initNavAccordion=function(){ - var el=$(".site-nav .nav-list"),lists=el.find("ul").parent("li"), - a=lists.children("a"),aul=lists.find("ul a"), - listsRest=el.children("li").not(lists), - aRest=listsRest.children("a"), - stopClick=0,that=this;a.on("click",function(e){ - if(!that.navHorizontal){ - if(e.timeStamp-stopClick>300){ - var self=$(this), - parent=self.parent("li"); - lists.not(parent).removeClass("open"), - parent.toggleClass("open"), - stopClick=e.timeStamp - } - e.preventDefault() - } - e.stopPropagation(), - e.stopImmediatePropagation() - }), - aul.on("touchend",function(e){ - that.isMobile&&that.navWrap.toggleClass("nav-offcanvas"), - e.stopPropagation(), - e.stopImmediatePropagation() - }), - aRest.on("touchend",function(){that.isMobile&&that.navWrap.toggleClass("nav-offcanvas")}), - aRest.on("click",function(e){if(!that.navHorizontal){var parent=aRest.parent("li");lists.not(parent).removeClass("open")}e.stopPropagation(),e.stopImmediatePropagation()}) - }; - window.MateriaApp=new MateriaApp +jQuery(function(){ + "use strict"; + var MateriaApp=function(){ + this.isMobile=null, + this.navHorizontal=!1, + this.fixedHeader=!0, + this.themeActive="theme-zero", + this.navFull=!1, + this.navOffCanvas=!1, + this.mainContainer=$(".main-container"), + this.siteHead=$(".site-head"), + this.siteSettings=$(".site-settings"), + this.app=$(".app"), + this.navWrap=$(".nav-wrap"), + this.contentContainer=$(".content-container"), + this._init() + }; + MateriaApp.prototype._init=function(){ + this._checkMobile(), + this.toggleSiteNav(), + this.initDefaultSettings(), + this.initRipple(), + this.toggleSettingsBox(), + this.initPerfectScrollbars(), + this.toggleFullScreen(), + this.toggleFloatingSidebar(), + this.initNavAccordion() + }, + MateriaApp.prototype.initDefaultSettings=function(){ + function onNavHorizontal(){ + this.checked?(that.navHorizontal=!0, + that.mainContainer.addClass("nav-horizontal")):(that.navHorizontal=!1, + that.mainContainer.removeClass("nav-horizontal")), + setTimeout(function(){ + sQuery.navHorizontal=that.navHorizontal, + statesQuery.put(sQuery)}) + } + function onFixedHeader(){ + this.checked?(that.fixedHeader=!0,that.siteHead.addClass("fixedHeader"), + that.contentContainer.addClass("fixedHeader")):(that.fixedHeader=!1, + that.siteHead.removeClass("fixedHeader"), + that.contentContainer.removeClass("fixedHeader")), + setTimeout(function(){ + sQuery.fixedHeader=that.fixedHeader, + statesQuery.put(sQuery) + }) + } + function onNavFull(){ + var elems=["body",".main-container",".nav-wrap",".content-container"]; + this.checked?(that.navFull=!0,elems.forEach( + function(el){$(el).addClass("nav-expand")})):(that.navFull=!1, + elems.forEach(function(el){$(el).removeClass("nav-expand")})), + setTimeout(function(){sQuery.navFull=that.navFull,statesQuery.put(sQuery)}) + } + function onThemeChange(e){ + var $t=$(this), + $list=that.siteSettings.find("#themeColor li"); + $list.removeClass("active"), + $t.addClass("active"), + that.app.removeClass(that.themeActive), + that.themeActive=$t.data("theme"), + sQuery.themeActive=that.themeActive, + statesQuery.put(sQuery), + that.app.addClass(that.themeActive), + e.preventDefault() + } + var that=this, + SETTINGS_STATES="_setting-states", + statesQuery={get:function(){return JSON.parse(localStorage.getItem(SETTINGS_STATES))}, + put:function(states){localStorage.setItem(SETTINGS_STATES,JSON.stringify(states))}}, + sQuery=statesQuery.get()||{navHorizontal:that.navHorizontal,fixedHeader:that.fixedHeader,navFull:that.navFull,themeActive:that.themeActive}; + if(sQuery&&(this.navHorizontal=sQuery.navHorizontal, + this.fixedHeader=sQuery.fixedHeader, + this.navFull=sQuery.navFull, + this.themeActive=sQuery.themeActive), + this.siteSettings.find("#navHorizontal").on("change",onNavHorizontal), + this.siteSettings.find("#fixedHeader").on("change",onFixedHeader), + this.siteSettings.find("#navFull").on("change",onNavFull), + this.siteSettings.find("#themeColor li").on("click touchstart",onThemeChange), + this.app.addClass(this.themeActive), + this.navFull){ + this.siteSettings.find("#navFull")[0].checked=!0; + var elems=["body",".main-container",".nav-wrap",".content-container"]; + elems.forEach(function(el){$(el).addClass("nav-expand")}) + } + this.navHorizontal&&(this.siteSettings.find("#navHorizontal")[0].checked=!0, + this.mainContainer.addClass("nav-horizontal")), + this.fixedHeader&&(this.siteSettings.find("#fixedHeader")[0].checked=!0, + this.siteHead.addClass("fixedHeader"), + this.contentContainer.addClass("fixedHeader")), + this.navOffCanvas&&this.navWrap.addClass("nav-offcanvas") + }, + MateriaApp.prototype.initRipple=function(){ + Waves.attach(".btn"), + Waves.init({duration:900,delay:300}), + Waves.attach(".nav-wrap .site-nav .nav-list li"), + Waves.attach(".md-button:not(.md-no-ink)") + }, + MateriaApp.prototype._checkMobile=function(){ + var mm=window.matchMedia("(max-width: 767px)"); + this.isMobile=mm.matches?!0:!1; + var that=this;mm.addListener(function(m){that.isMobile=m.matches?!0:!1}) + }, + MateriaApp.prototype.toggleSiteNav=function(){ + this.siteHead.find(".nav-trigger").on("click touchstart",function(e){ + var elems=["body",".main-container",".nav-wrap",".content-container"]; + elems.forEach(function(el){ + $(el).toggleClass("nav-expand"),".nav-wrap"==el&&$(el).toggleClass("nav-offcanvas") + }),e.preventDefault() + }) + }, + MateriaApp.prototype.toggleSettingsBox=function(){ + this.siteSettings.find(".trigger").on("click touchstart", + function(e){$(".site-settings").toggleClass("open"),e.preventDefault()}) + }, + MateriaApp.prototype.initPerfectScrollbars=function(){ + var $el=$("[data-perfect-scrollbar]"); + $el.each(function(){ + var $t=$(this); + $t.perfectScrollbar({suppressScrollX:!0}), + setInterval(function(){ + $t[0].scrollHeight>=$t[0].clientHeight&&$t.perfectScrollbar("update") + },400) + }) + }, + MateriaApp.prototype.toggleFullScreen=function(){ + $(".site-head .fullscreen").on("click",function(e){screenfull.toggle(),e.preventDefault()}) + }, + MateriaApp.prototype.toggleFloatingSidebar=function(){ + $(".site-head .floating-sidebar > a").on("click",function(e){$(this).parent().toggleClass("open"),e.preventDefault()}) + }, + MateriaApp.prototype.initNavAccordion=function(){ + var el=$(".site-nav .nav-list"),lists=el.find("ul").parent("li"), + a=lists.children("a"),aul=lists.find("ul a"), + listsRest=el.children("li").not(lists), + aRest=listsRest.children("a"), + stopClick=0,that=this;a.on("click",function(e){ + if(!that.navHorizontal){ + if(e.timeStamp-stopClick>300){ + var self=$(this), + parent=self.parent("li"); + lists.not(parent).removeClass("open"), + parent.toggleClass("open"), + stopClick=e.timeStamp + } + e.preventDefault() + } + e.stopPropagation(), + e.stopImmediatePropagation() + }), + aul.on("touchend",function(e){ + that.isMobile&&that.navWrap.toggleClass("nav-offcanvas"), + e.stopPropagation(), + e.stopImmediatePropagation() + }), + aRest.on("touchend",function(){that.isMobile&&that.navWrap.toggleClass("nav-offcanvas")}), + aRest.on("click",function(e){if(!that.navHorizontal){var parent=aRest.parent("li");lists.not(parent).removeClass("open")}e.stopPropagation(),e.stopImmediatePropagation()}) + }; + window.MateriaApp=new MateriaApp }); \ No newline at end of file diff --git a/ui/theme/default/scripts/bootstrap.js b/ui/ui/scripts/bootstrap.js similarity index 100% rename from ui/theme/default/scripts/bootstrap.js rename to ui/ui/scripts/bootstrap.js diff --git a/ui/theme/default/scripts/bootstrap.min.js b/ui/ui/scripts/bootstrap.min.js similarity index 100% rename from ui/theme/default/scripts/bootstrap.min.js rename to ui/ui/scripts/bootstrap.min.js diff --git a/ui/theme/default/scripts/c3.init.js b/ui/ui/scripts/c3.init.js similarity index 100% rename from ui/theme/default/scripts/c3.init.js rename to ui/ui/scripts/c3.init.js diff --git a/ui/theme/default/scripts/calendar.init.js b/ui/ui/scripts/calendar.init.js similarity index 100% rename from ui/theme/default/scripts/calendar.init.js rename to ui/ui/scripts/calendar.init.js diff --git a/ui/theme/default/scripts/custom.js b/ui/ui/scripts/custom.js similarity index 95% rename from ui/theme/default/scripts/custom.js rename to ui/ui/scripts/custom.js index 241ae148..54e7f8bd 100644 --- a/ui/theme/default/scripts/custom.js +++ b/ui/ui/scripts/custom.js @@ -1,106 +1,106 @@ -// radio checked - hotspot plan -$(document).ready(function () { - $('input[type=radio]').change(function(){ - - if ($('#Time_Limit').is(':checked')) { - $('#DataLimit').hide(); - $('#TimeLimit').show(); - } - if ($('#Data_Limit').is(':checked')) { - $('#TimeLimit').hide(); - $('#DataLimit').show(); - } - if ($('#Both_Limit').is(':checked')) { - $('#TimeLimit').show(); - $('#DataLimit').show(); - } - - if ($('#Unlimited').is(':checked')) { - $('#Type').hide(); - $('#TimeLimit').hide(); - $('#DataLimit').hide(); - } else { - $('#Type').show(); - } - - if ($('#Hotspot').is(':checked')) { - $('#p').hide(); - $('#h').show(); - } - if ($('#PPPOE').is(':checked')) { - $('#p').show(); - $('#h').hide(); - } - - }); -}); -$("#Hotspot").prop("checked", true).change(); - - -//auto load pool - pppoe plan -var htmlobjek; -$(document).ready(function(){ - $("#routers").change(function(){ - var routers = $("#routers").val(); - $.ajax({ - url: "index.php?_route=autoload/pool", - data: "routers="+routers, - cache: false, - success: function(msg){ - $("#pool_name").html(msg); - } - }); - }); -}); - -//auto load plans data - recharge user -$(function() { - $('input[type=radio]').change(function(){ - if ($('#Hot').is(':checked')) { - $.ajax({ - type: "POST", - dataType: "html", - url: "index.php?_route=autoload/server", - success: function(msg){ - $("#server").html(msg); - } - }); - - $("#server").change(getAjaxAlamat); - function getAjaxAlamat(){ - var server = $("#server").val(); - $.ajax({ - type: "POST", - dataType: "html", - url: "index.php?_route=autoload/plan", - data: "jenis=Hotspot&server="+server, - success: function(msg){ - $("#plan").html(msg); - } - }); - }; - - }else{ - $.ajax({ - type: "POST", - dataType: "html", - url: "index.php?_route=autoload/server", - success: function(msg){ - $("#server").html(msg); - } - }); - $("#server").change(function(){ - var server = $("#server").val(); - $.ajax({ - type: "POST", - dataType: "html", - url: "index.php?_route=autoload/plan", - data: "jenis=PPPOE&server="+server, - success: function(msg){ - $("#plan").html(msg); - } - }); - }); - } - }); +// radio checked - hotspot plan +$(document).ready(function () { + $('input[type=radio]').change(function(){ + + if ($('#Time_Limit').is(':checked')) { + $('#DataLimit').hide(); + $('#TimeLimit').show(); + } + if ($('#Data_Limit').is(':checked')) { + $('#TimeLimit').hide(); + $('#DataLimit').show(); + } + if ($('#Both_Limit').is(':checked')) { + $('#TimeLimit').show(); + $('#DataLimit').show(); + } + + if ($('#Unlimited').is(':checked')) { + $('#Type').hide(); + $('#TimeLimit').hide(); + $('#DataLimit').hide(); + } else { + $('#Type').show(); + } + + if ($('#Hotspot').is(':checked')) { + $('#p').hide(); + $('#h').show(); + } + if ($('#PPPOE').is(':checked')) { + $('#p').show(); + $('#h').hide(); + } + + }); +}); +$("#Hotspot").prop("checked", true).change(); + + +//auto load pool - pppoe plan +var htmlobjek; +$(document).ready(function(){ + $("#routers").change(function(){ + var routers = $("#routers").val(); + $.ajax({ + url: "index.php?_route=autoload/pool", + data: "routers="+routers, + cache: false, + success: function(msg){ + $("#pool_name").html(msg); + } + }); + }); +}); + +//auto load plans data - recharge user +$(function() { + $('input[type=radio]').change(function(){ + if ($('#Hot').is(':checked')) { + $.ajax({ + type: "POST", + dataType: "html", + url: "index.php?_route=autoload/server", + success: function(msg){ + $("#server").html(msg); + } + }); + + $("#server").change(getAjaxAlamat); + function getAjaxAlamat(){ + var server = $("#server").val(); + $.ajax({ + type: "POST", + dataType: "html", + url: "index.php?_route=autoload/plan", + data: "jenis=Hotspot&server="+server, + success: function(msg){ + $("#plan").html(msg); + } + }); + }; + + }else{ + $.ajax({ + type: "POST", + dataType: "html", + url: "index.php?_route=autoload/server", + success: function(msg){ + $("#server").html(msg); + } + }); + $("#server").change(function(){ + var server = $("#server").val(); + $.ajax({ + type: "POST", + dataType: "html", + url: "index.php?_route=autoload/plan", + data: "jenis=PPPOE&server="+server, + success: function(msg){ + $("#plan").html(msg); + } + }); + }); + } + }); }); \ No newline at end of file diff --git a/ui/theme/default/scripts/form-elements.init.js b/ui/ui/scripts/form-elements.init.js similarity index 97% rename from ui/theme/default/scripts/form-elements.init.js rename to ui/ui/scripts/form-elements.init.js index 4e65c9e4..7510e9c4 100644 --- a/ui/theme/default/scripts/form-elements.init.js +++ b/ui/ui/scripts/form-elements.init.js @@ -1,35 +1,35 @@ -jQuery(function(){ - "use strict"; - function initSelect2(){ - $("#personSelect").select2(), - $("#stateSelect").select2(), - $("#multiSelect").select2(), - $("#templatingSelect").select2({ - templateResult:function(state){ - return state.id?$(' '+state.text+""):state.text}, - templateSelection:function(state){ - return $(' '+state.text+"")} - }) - } - function initColorpicker(){$("#colorpickerDemo").colorpicker(),$("#colorpickerDemo1").colorpicker()} - function initTextEditor(){$("#textEditorDemo").summernote({height:300})} - function initRangeSlider(){ - var ids=["#sliderEx1","#sliderEx2","#sliderEx3","#sliderEx4","#sliderEx5","#sliderEx6","#sliderEx7"]; - ids.forEach(function(id){ - $(id).slider() - }) - } - function initDatepicker(){ - $("#datepicker1").datepicker({autoclose:!0}), - $("#datepicker2").datepicker({autoclose:!0}), - $("#datepicker3").datepicker({todayHighlight:!0}) - } - function _init(){ - initSelect2(), - initColorpicker(), - initTextEditor(), - initRangeSlider(), - initDatepicker() - } - _init() +jQuery(function(){ + "use strict"; + function initSelect2(){ + $("#personSelect").select2(), + $("#stateSelect").select2(), + $("#multiSelect").select2(), + $("#templatingSelect").select2({ + templateResult:function(state){ + return state.id?$(' '+state.text+""):state.text}, + templateSelection:function(state){ + return $(' '+state.text+"")} + }) + } + function initColorpicker(){$("#colorpickerDemo").colorpicker(),$("#colorpickerDemo1").colorpicker()} + function initTextEditor(){$("#textEditorDemo").summernote({height:300})} + function initRangeSlider(){ + var ids=["#sliderEx1","#sliderEx2","#sliderEx3","#sliderEx4","#sliderEx5","#sliderEx6","#sliderEx7"]; + ids.forEach(function(id){ + $(id).slider() + }) + } + function initDatepicker(){ + $("#datepicker1").datepicker({autoclose:!0}), + $("#datepicker2").datepicker({autoclose:!0}), + $("#datepicker3").datepicker({todayHighlight:!0}) + } + function _init(){ + initSelect2(), + initColorpicker(), + initTextEditor(), + initRangeSlider(), + initDatepicker() + } + _init() }); \ No newline at end of file diff --git a/ui/theme/default/scripts/inbox.init.js b/ui/ui/scripts/inbox.init.js similarity index 100% rename from ui/theme/default/scripts/inbox.init.js rename to ui/ui/scripts/inbox.init.js diff --git a/ui/theme/default/scripts/index.html b/ui/ui/scripts/index.html similarity index 100% rename from ui/theme/default/scripts/index.html rename to ui/ui/scripts/index.html diff --git a/ui/theme/default/scripts/index.init.js b/ui/ui/scripts/index.init.js similarity index 100% rename from ui/theme/default/scripts/index.init.js rename to ui/ui/scripts/index.init.js diff --git a/ui/theme/default/scripts/jquery-1.10.2.js b/ui/ui/scripts/jquery-1.10.2.js similarity index 100% rename from ui/theme/default/scripts/jquery-1.10.2.js rename to ui/ui/scripts/jquery-1.10.2.js diff --git a/ui/theme/default/scripts/maps.init.js b/ui/ui/scripts/maps.init.js similarity index 100% rename from ui/theme/default/scripts/maps.init.js rename to ui/ui/scripts/maps.init.js diff --git a/ui/theme/default/scripts/nicEdit.js b/ui/ui/scripts/nicEdit.js similarity index 100% rename from ui/theme/default/scripts/nicEdit.js rename to ui/ui/scripts/nicEdit.js diff --git a/ui/theme/default/scripts/nicEditorIcons.gif b/ui/ui/scripts/nicEditorIcons.gif similarity index 100% rename from ui/theme/default/scripts/nicEditorIcons.gif rename to ui/ui/scripts/nicEditorIcons.gif diff --git a/ui/theme/default/scripts/plugins/bootstrap-colorpicker.min.js b/ui/ui/scripts/plugins/bootstrap-colorpicker.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/bootstrap-colorpicker.min.js rename to ui/ui/scripts/plugins/bootstrap-colorpicker.min.js diff --git a/ui/theme/default/scripts/plugins/bootstrap-datepicker.min.js b/ui/ui/scripts/plugins/bootstrap-datepicker.min.js similarity index 99% rename from ui/theme/default/scripts/plugins/bootstrap-datepicker.min.js rename to ui/ui/scripts/plugins/bootstrap-datepicker.min.js index 115fbe7d..cd208bdc 100644 --- a/ui/theme/default/scripts/plugins/bootstrap-datepicker.min.js +++ b/ui/ui/scripts/plugins/bootstrap-datepicker.min.js @@ -1,2 +1,2 @@ -!function(a,b){function c(){return new Date(Date.UTC.apply(Date,arguments))}function d(){var a=new Date;return c(a.getFullYear(),a.getMonth(),a.getDate())}function e(a,b){return a.getUTCFullYear()===b.getUTCFullYear()&&a.getUTCMonth()===b.getUTCMonth()&&a.getUTCDate()===b.getUTCDate()}function f(a){return function(){return this[a].apply(this,arguments)}}function g(b,c){function d(a,b){return b.toLowerCase()}var e,f=a(b).data(),g={},h=new RegExp("^"+c.toLowerCase()+"([A-Z])");c=new RegExp("^"+c.toLowerCase());for(var i in f)c.test(i)&&(e=i.replace(h,d),g[e]=f[i]);return g}function h(b){var c={};if(p[b]||(b=b.split("-")[0],p[b])){var d=p[b];return a.each(o,function(a,b){b in d&&(c[b]=d[b])}),c}}var i=function(){var b={get:function(a){return this.slice(a)[0]},contains:function(a){for(var b=a&&a.valueOf(),c=0,d=this.length;d>c;c++)if(this[c].valueOf()===b)return c;return-1},remove:function(a){this.splice(a,1)},replace:function(b){b&&(a.isArray(b)||(b=[b]),this.clear(),this.push.apply(this,b))},clear:function(){this.length=0},copy:function(){var a=new i;return a.replace(this),a}};return function(){var c=[];return c.push.apply(c,arguments),a.extend(c,b),c}}(),j=function(b,c){this._process_options(c),this.dates=new i,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=a(b),this.isInline=!1,this.isInput=this.element.is("input"),this.component=this.element.hasClass("date")?this.element.find(".add-on, .input-group-addon, .btn"):!1,this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=a(q.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot .today, tfoot .clear").attr("colspan",function(a,b){return parseInt(b)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.setDatesDisabled(this.o.datesDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};j.prototype={constructor:j,_process_options:function(e){this._o=a.extend({},this._o,e);var f=this.o=a.extend({},this._o),g=f.language;switch(p[g]||(g=g.split("-")[0],p[g]||(g=n.language)),f.language=g,f.startView){case 2:case"decade":f.startView=2;break;case 1:case"year":f.startView=1;break;default:f.startView=0}switch(f.minViewMode){case 1:case"months":f.minViewMode=1;break;case 2:case"years":f.minViewMode=2;break;default:f.minViewMode=0}f.startView=Math.max(f.startView,f.minViewMode),f.multidate!==!0&&(f.multidate=Number(f.multidate)||!1,f.multidate!==!1&&(f.multidate=Math.max(0,f.multidate))),f.multidateSeparator=String(f.multidateSeparator),f.weekStart%=7,f.weekEnd=(f.weekStart+6)%7;var h=q.parseFormat(f.format);if(f.startDate!==-1/0&&(f.startDate=f.startDate?f.startDate instanceof Date?this._local_to_utc(this._zero_time(f.startDate)):q.parseDate(f.startDate,h,f.language):-1/0),1/0!==f.endDate&&(f.endDate=f.endDate?f.endDate instanceof Date?this._local_to_utc(this._zero_time(f.endDate)):q.parseDate(f.endDate,h,f.language):1/0),f.daysOfWeekDisabled=f.daysOfWeekDisabled||[],a.isArray(f.daysOfWeekDisabled)||(f.daysOfWeekDisabled=f.daysOfWeekDisabled.split(/[,\s]*/)),f.daysOfWeekDisabled=a.map(f.daysOfWeekDisabled,function(a){return parseInt(a,10)}),f.datesDisabled=f.datesDisabled||[],!a.isArray(f.datesDisabled)){var i=[];i.push(q.parseDate(f.datesDisabled,h,f.language)),f.datesDisabled=i}f.datesDisabled=a.map(f.datesDisabled,function(a){return q.parseDate(a,h,f.language)});var j=String(f.orientation).toLowerCase().split(/\s+/g),k=f.orientation.toLowerCase();if(j=a.grep(j,function(a){return/^auto|left|right|top|bottom$/.test(a)}),f.orientation={x:"auto",y:"auto"},k&&"auto"!==k)if(1===j.length)switch(j[0]){case"top":case"bottom":f.orientation.y=j[0];break;case"left":case"right":f.orientation.x=j[0]}else k=a.grep(j,function(a){return/^left|right$/.test(a)}),f.orientation.x=k[0]||"auto",k=a.grep(j,function(a){return/^top|bottom$/.test(a)}),f.orientation.y=k[0]||"auto";if(f.defaultViewDate){var l=f.defaultViewDate.year||(new Date).getFullYear(),m=f.defaultViewDate.month||0,o=f.defaultViewDate.day||1;f.defaultViewDate=c(l,m,o)}else f.defaultViewDate=d();f.showOnFocus=f.showOnFocus!==b?f.showOnFocus:!0},_events:[],_secondaryEvents:[],_applyEvents:function(a){for(var c,d,e,f=0;fe?(this.picker.addClass("datepicker-orient-right"),n=k.left+m-b):this.picker.addClass("datepicker-orient-left");var p,q,r=this.o.orientation.y;if("auto"===r&&(p=-g+o-c,q=g+f-(o+l+c),r=Math.max(p,q)===q?"top":"bottom"),this.picker.addClass("datepicker-orient-"+r),"top"===r?o+=l:o-=c+parseInt(this.picker.css("padding-top")),this.o.rtl){var s=e-(n+m);this.picker.css({top:o,right:s,zIndex:j})}else this.picker.css({top:o,left:n,zIndex:j});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var b=this.dates.copy(),c=[],d=!1;return arguments.length?(a.each(arguments,a.proxy(function(a,b){b instanceof Date&&(b=this._local_to_utc(b)),c.push(b)},this)),d=!0):(c=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),c=c&&this.o.multidate?c.split(this.o.multidateSeparator):[c],delete this.element.data().date),c=a.map(c,a.proxy(function(a){return q.parseDate(a,this.o.format,this.o.language)},this)),c=a.grep(c,a.proxy(function(a){return athis.o.endDate||!a},this),!0),this.dates.replace(c),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate&&(this.viewDate=new Date(this.o.endDate)),d?this.setValue():c.length&&String(b)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&b.length&&this._trigger("clearDate"),this.fill(),this},fillDow:function(){var a=this.o.weekStart,b="";if(this.o.calendarWeeks){this.picker.find(".datepicker-days thead tr:first-child .datepicker-switch").attr("colspan",function(a,b){return parseInt(b)+1});var c=' ';b+=c}for(;a'+p[this.o.language].daysMin[a++%7]+"";b+="",this.picker.find(".datepicker-days thead").append(b)},fillMonths:function(){for(var a="",b=0;12>b;)a+=''+p[this.o.language].monthsShort[b++]+"";this.picker.find(".datepicker-months td").html(a)},setRange:function(b){b&&b.length?this.range=a.map(b,function(a){return a.valueOf()}):delete this.range,this.fill()},getClassNames:function(b){var c=[],d=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),g=new Date;return b.getUTCFullYear()d||b.getUTCFullYear()===d&&b.getUTCMonth()>f)&&c.push("new"),this.focusDate&&b.valueOf()===this.focusDate.valueOf()&&c.push("focused"),this.o.todayHighlight&&b.getUTCFullYear()===g.getFullYear()&&b.getUTCMonth()===g.getMonth()&&b.getUTCDate()===g.getDate()&&c.push("today"),-1!==this.dates.contains(b)&&c.push("active"),(b.valueOf()this.o.endDate||-1!==a.inArray(b.getUTCDay(),this.o.daysOfWeekDisabled))&&c.push("disabled"),this.o.datesDisabled.length>0&&a.grep(this.o.datesDisabled,function(a){return e(b,a)}).length>0&&c.push("disabled","disabled-date"),this.range&&(b>this.range[0]&&b"),this.o.calendarWeeks)){var u=new Date(+n+(this.o.weekStart-n.getUTCDay()-7)%7*864e5),v=new Date(Number(u)+(11-u.getUTCDay())%7*864e5),w=new Date(Number(w=c(v.getUTCFullYear(),0,1))+(11-w.getUTCDay())%7*864e5),x=(v-w)/864e5/7+1;t.push(''+x+"")}if(s=this.getClassNames(n),s.push("day"),this.o.beforeShowDay!==a.noop){var y=this.o.beforeShowDay(this._utc_to_local(n));y===b?y={}:"boolean"==typeof y?y={enabled:y}:"string"==typeof y&&(y={classes:y}),y.enabled===!1&&s.push("disabled"),y.classes&&(s=s.concat(y.classes.split(/\s+/))),y.tooltip&&(d=y.tooltip)}s=a.unique(s),t.push('"+n.getUTCDate()+""),d=null,n.getUTCDay()===this.o.weekEnd&&t.push(""),n.setUTCDate(n.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(t.join(""));var z=this.picker.find(".datepicker-months").find("th:eq(1)").text(f).end().find("span").removeClass("active");if(a.each(this.dates,function(a,b){b.getUTCFullYear()===f&&z.eq(b.getUTCMonth()).addClass("active")}),(h>f||f>j)&&z.addClass("disabled"),f===h&&z.slice(0,i).addClass("disabled"),f===j&&z.slice(k+1).addClass("disabled"),this.o.beforeShowMonth!==a.noop){var A=this;a.each(z,function(b,c){if(!a(c).hasClass("disabled")){var d=new Date(f,b,1),e=A.o.beforeShowMonth(d);e===!1&&a(c).addClass("disabled")}})}t="",f=10*parseInt(f/10,10);var B=this.picker.find(".datepicker-years").find("th:eq(1)").text(f+"-"+(f+9)).end().find("td");f-=1;for(var C,D=a.map(this.dates,function(a){return a.getUTCFullYear()}),E=-1;11>E;E++)C=["year"],-1===E?C.push("old"):10===E&&C.push("new"),-1!==a.inArray(f,D)&&C.push("active"),(h>f||f>j)&&C.push("disabled"),t+=''+f+"",f+=1;B.html(t)}},updateNavArrows:function(){if(this._allow_update){var a=new Date(this.viewDate),b=a.getUTCFullYear(),c=a.getUTCMonth();switch(this.viewMode){case 0:this.picker.find(".prev").css(this.o.startDate!==-1/0&&b<=this.o.startDate.getUTCFullYear()&&c<=this.o.startDate.getUTCMonth()?{visibility:"hidden"}:{visibility:"visible"}),this.picker.find(".next").css(1/0!==this.o.endDate&&b>=this.o.endDate.getUTCFullYear()&&c>=this.o.endDate.getUTCMonth()?{visibility:"hidden"}:{visibility:"visible"});break;case 1:case 2:this.picker.find(".prev").css(this.o.startDate!==-1/0&&b<=this.o.startDate.getUTCFullYear()?{visibility:"hidden"}:{visibility:"visible"}),this.picker.find(".next").css(1/0!==this.o.endDate&&b>=this.o.endDate.getUTCFullYear()?{visibility:"hidden"}:{visibility:"visible"})}}},click:function(b){b.preventDefault();var d,e,f,g=a(b.target).closest("span, td, th");if(1===g.length)switch(g[0].nodeName.toLowerCase()){case"th":switch(g[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var h=q.modes[this.viewMode].navStep*("prev"===g[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,h),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,h),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var i=new Date;i=c(i.getFullYear(),i.getMonth(),i.getDate(),0,0,0),this.showMode(-2);var j="linked"===this.o.todayBtn?null:"view";this._setDate(i,j);break;case"clear":this.clearDates()}break;case"span":g.hasClass("disabled")||(this.viewDate.setUTCDate(1),g.hasClass("month")?(f=1,e=g.parent().find("span").index(g),d=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(e),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(c(d,e,f))):(f=1,e=0,d=parseInt(g.text(),10)||0,this.viewDate.setUTCFullYear(d),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(c(d,e,f))),this.showMode(-1),this.fill());break;case"td":g.hasClass("day")&&!g.hasClass("disabled")&&(f=parseInt(g.text(),10)||1,d=this.viewDate.getUTCFullYear(),e=this.viewDate.getUTCMonth(),g.hasClass("old")?0===e?(e=11,d-=1):e-=1:g.hasClass("new")&&(11===e?(e=0,d+=1):e+=1),this._setDate(c(d,e,f)))}this.picker.is(":visible")&&this._focused_from&&a(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(a){var b=this.dates.contains(a);if(a||this.dates.clear(),-1!==b?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(b):this.o.multidate===!1?(this.dates.clear(),this.dates.push(a)):this.dates.push(a),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(a,b){b&&"date"!==b||this._toggle_multidate(a&&new Date(a)),b&&"view"!==b||(this.viewDate=a&&new Date(a)),this.fill(),this.setValue(),b&&"view"===b||this._trigger("changeDate");var c;this.isInput?c=this.element:this.component&&(c=this.element.find("input")),c&&c.change(),!this.o.autoclose||b&&"date"!==b||this.hide()},moveMonth:function(a,c){if(!a)return b;if(!c)return a;var d,e,f=new Date(a.valueOf()),g=f.getUTCDate(),h=f.getUTCMonth(),i=Math.abs(c);if(c=c>0?1:-1,1===i)e=-1===c?function(){return f.getUTCMonth()===h}:function(){return f.getUTCMonth()!==d},d=h+c,f.setUTCMonth(d),(0>d||d>11)&&(d=(d+12)%12);else{for(var j=0;i>j;j++)f=this.moveMonth(f,c);d=f.getUTCMonth(),f.setUTCDate(g),e=function(){return d!==f.getUTCMonth()}}for(;e();)f.setUTCDate(--g),f.setUTCMonth(d);return f},moveYear:function(a,b){return this.moveMonth(a,12*b)},dateWithinRange:function(a){return a>=this.o.startDate&&a<=this.o.endDate},keydown:function(a){if(!this.picker.is(":visible"))return void(27===a.keyCode&&this.show());var b,c,e,f=!1,g=this.focusDate||this.viewDate;switch(a.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),a.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;b=37===a.keyCode?-1:1,a.ctrlKey?(c=this.moveYear(this.dates.get(-1)||d(),b),e=this.moveYear(g,b),this._trigger("changeYear",this.viewDate)):a.shiftKey?(c=this.moveMonth(this.dates.get(-1)||d(),b),e=this.moveMonth(g,b),this._trigger("changeMonth",this.viewDate)):(c=new Date(this.dates.get(-1)||d()),c.setUTCDate(c.getUTCDate()+b),e=new Date(g),e.setUTCDate(g.getUTCDate()+b)),this.dateWithinRange(e)&&(this.focusDate=this.viewDate=e,this.setValue(),this.fill(),a.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;b=38===a.keyCode?-1:1,a.ctrlKey?(c=this.moveYear(this.dates.get(-1)||d(),b),e=this.moveYear(g,b),this._trigger("changeYear",this.viewDate)):a.shiftKey?(c=this.moveMonth(this.dates.get(-1)||d(),b),e=this.moveMonth(g,b),this._trigger("changeMonth",this.viewDate)):(c=new Date(this.dates.get(-1)||d()),c.setUTCDate(c.getUTCDate()+7*b),e=new Date(g),e.setUTCDate(g.getUTCDate()+7*b)),this.dateWithinRange(e)&&(this.focusDate=this.viewDate=e,this.setValue(),this.fill(),a.preventDefault());break;case 32:break;case 13:g=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(g),f=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(a.preventDefault(),"function"==typeof a.stopPropagation?a.stopPropagation():a.cancelBubble=!0,this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(f){this._trigger(this.dates.length?"changeDate":"clearDate");var h;this.isInput?h=this.element:this.component&&(h=this.element.find("input")),h&&h.change()}},showMode:function(a){a&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+a))),this.picker.children("div").hide().filter(".datepicker-"+q.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var k=function(b,c){this.element=a(b),this.inputs=a.map(c.inputs,function(a){return a.jquery?a[0]:a}),delete c.inputs,m.call(a(this.inputs),c).bind("changeDate",a.proxy(this.dateUpdated,this)),this.pickers=a.map(this.inputs,function(b){return a(b).data("datepicker")}),this.updateDates()};k.prototype={updateDates:function(){this.dates=a.map(this.pickers,function(a){return a.getUTCDate()}),this.updateRanges()},updateRanges:function(){var b=a.map(this.dates,function(a){return a.valueOf()});a.each(this.pickers,function(a,c){c.setRange(b)})},dateUpdated:function(b){if(!this.updating){this.updating=!0;var c=a(b.target).data("datepicker"),d=c.getUTCDate(),e=a.inArray(b.target,this.inputs),f=e-1,g=e+1,h=this.inputs.length;if(-1!==e){if(a.each(this.pickers,function(a,b){b.getUTCDate()||b.setUTCDate(d)}),d=0&&dthis.dates[g])for(;h>g&&d>this.dates[g];)this.pickers[g++].setUTCDate(d);this.updateDates(),delete this.updating}}},remove:function(){a.map(this.pickers,function(a){a.remove()}),delete this.element.data().datepicker}};var l=a.fn.datepicker,m=function(c){var d=Array.apply(null,arguments);d.shift();var e;return this.each(function(){var f=a(this),i=f.data("datepicker"),l="object"==typeof c&&c;if(!i){var m=g(this,"date"),o=a.extend({},n,m,l),p=h(o.language),q=a.extend({},n,p,m,l);if(f.hasClass("input-daterange")||q.inputs){var r={inputs:q.inputs||f.find("input").toArray()};f.data("datepicker",i=new k(this,a.extend(q,r)))}else f.data("datepicker",i=new j(this,q))}return"string"==typeof c&&"function"==typeof i[c]&&(e=i[c].apply(i,d),e!==b)?!1:void 0}),e!==b?e:this};a.fn.datepicker=m;var n=a.fn.datepicker.defaults={autoclose:!1,beforeShowDay:a.noop,beforeShowMonth:a.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],datesDisabled:[],endDate:1/0,forceParse:!0, +!function(a,b){function c(){return new Date(Date.UTC.apply(Date,arguments))}function d(){var a=new Date;return c(a.getFullYear(),a.getMonth(),a.getDate())}function e(a,b){return a.getUTCFullYear()===b.getUTCFullYear()&&a.getUTCMonth()===b.getUTCMonth()&&a.getUTCDate()===b.getUTCDate()}function f(a){return function(){return this[a].apply(this,arguments)}}function g(b,c){function d(a,b){return b.toLowerCase()}var e,f=a(b).data(),g={},h=new RegExp("^"+c.toLowerCase()+"([A-Z])");c=new RegExp("^"+c.toLowerCase());for(var i in f)c.test(i)&&(e=i.replace(h,d),g[e]=f[i]);return g}function h(b){var c={};if(p[b]||(b=b.split("-")[0],p[b])){var d=p[b];return a.each(o,function(a,b){b in d&&(c[b]=d[b])}),c}}var i=function(){var b={get:function(a){return this.slice(a)[0]},contains:function(a){for(var b=a&&a.valueOf(),c=0,d=this.length;d>c;c++)if(this[c].valueOf()===b)return c;return-1},remove:function(a){this.splice(a,1)},replace:function(b){b&&(a.isArray(b)||(b=[b]),this.clear(),this.push.apply(this,b))},clear:function(){this.length=0},copy:function(){var a=new i;return a.replace(this),a}};return function(){var c=[];return c.push.apply(c,arguments),a.extend(c,b),c}}(),j=function(b,c){this._process_options(c),this.dates=new i,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=a(b),this.isInline=!1,this.isInput=this.element.is("input"),this.component=this.element.hasClass("date")?this.element.find(".add-on, .input-group-addon, .btn"):!1,this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=a(q.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot .today, tfoot .clear").attr("colspan",function(a,b){return parseInt(b)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.setDatesDisabled(this.o.datesDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};j.prototype={constructor:j,_process_options:function(e){this._o=a.extend({},this._o,e);var f=this.o=a.extend({},this._o),g=f.language;switch(p[g]||(g=g.split("-")[0],p[g]||(g=n.language)),f.language=g,f.startView){case 2:case"decade":f.startView=2;break;case 1:case"year":f.startView=1;break;default:f.startView=0}switch(f.minViewMode){case 1:case"months":f.minViewMode=1;break;case 2:case"years":f.minViewMode=2;break;default:f.minViewMode=0}f.startView=Math.max(f.startView,f.minViewMode),f.multidate!==!0&&(f.multidate=Number(f.multidate)||!1,f.multidate!==!1&&(f.multidate=Math.max(0,f.multidate))),f.multidateSeparator=String(f.multidateSeparator),f.weekStart%=7,f.weekEnd=(f.weekStart+6)%7;var h=q.parseFormat(f.format);if(f.startDate!==-1/0&&(f.startDate=f.startDate?f.startDate instanceof Date?this._local_to_utc(this._zero_time(f.startDate)):q.parseDate(f.startDate,h,f.language):-1/0),1/0!==f.endDate&&(f.endDate=f.endDate?f.endDate instanceof Date?this._local_to_utc(this._zero_time(f.endDate)):q.parseDate(f.endDate,h,f.language):1/0),f.daysOfWeekDisabled=f.daysOfWeekDisabled||[],a.isArray(f.daysOfWeekDisabled)||(f.daysOfWeekDisabled=f.daysOfWeekDisabled.split(/[,\s]*/)),f.daysOfWeekDisabled=a.map(f.daysOfWeekDisabled,function(a){return parseInt(a,10)}),f.datesDisabled=f.datesDisabled||[],!a.isArray(f.datesDisabled)){var i=[];i.push(q.parseDate(f.datesDisabled,h,f.language)),f.datesDisabled=i}f.datesDisabled=a.map(f.datesDisabled,function(a){return q.parseDate(a,h,f.language)});var j=String(f.orientation).toLowerCase().split(/\s+/g),k=f.orientation.toLowerCase();if(j=a.grep(j,function(a){return/^auto|left|right|top|bottom$/.test(a)}),f.orientation={x:"auto",y:"auto"},k&&"auto"!==k)if(1===j.length)switch(j[0]){case"top":case"bottom":f.orientation.y=j[0];break;case"left":case"right":f.orientation.x=j[0]}else k=a.grep(j,function(a){return/^left|right$/.test(a)}),f.orientation.x=k[0]||"auto",k=a.grep(j,function(a){return/^top|bottom$/.test(a)}),f.orientation.y=k[0]||"auto";if(f.defaultViewDate){var l=f.defaultViewDate.year||(new Date).getFullYear(),m=f.defaultViewDate.month||0,o=f.defaultViewDate.day||1;f.defaultViewDate=c(l,m,o)}else f.defaultViewDate=d();f.showOnFocus=f.showOnFocus!==b?f.showOnFocus:!0},_events:[],_secondaryEvents:[],_applyEvents:function(a){for(var c,d,e,f=0;fe?(this.picker.addClass("datepicker-orient-right"),n=k.left+m-b):this.picker.addClass("datepicker-orient-left");var p,q,r=this.o.orientation.y;if("auto"===r&&(p=-g+o-c,q=g+f-(o+l+c),r=Math.max(p,q)===q?"top":"bottom"),this.picker.addClass("datepicker-orient-"+r),"top"===r?o+=l:o-=c+parseInt(this.picker.css("padding-top")),this.o.rtl){var s=e-(n+m);this.picker.css({top:o,right:s,zIndex:j})}else this.picker.css({top:o,left:n,zIndex:j});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var b=this.dates.copy(),c=[],d=!1;return arguments.length?(a.each(arguments,a.proxy(function(a,b){b instanceof Date&&(b=this._local_to_utc(b)),c.push(b)},this)),d=!0):(c=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),c=c&&this.o.multidate?c.split(this.o.multidateSeparator):[c],delete this.element.data().date),c=a.map(c,a.proxy(function(a){return q.parseDate(a,this.o.format,this.o.language)},this)),c=a.grep(c,a.proxy(function(a){return athis.o.endDate||!a},this),!0),this.dates.replace(c),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate&&(this.viewDate=new Date(this.o.endDate)),d?this.setValue():c.length&&String(b)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&b.length&&this._trigger("clearDate"),this.fill(),this},fillDow:function(){var a=this.o.weekStart,b="";if(this.o.calendarWeeks){this.picker.find(".datepicker-days thead tr:first-child .datepicker-switch").attr("colspan",function(a,b){return parseInt(b)+1});var c=' ';b+=c}for(;a'+p[this.o.language].daysMin[a++%7]+"";b+="",this.picker.find(".datepicker-days thead").append(b)},fillMonths:function(){for(var a="",b=0;12>b;)a+=''+p[this.o.language].monthsShort[b++]+"";this.picker.find(".datepicker-months td").html(a)},setRange:function(b){b&&b.length?this.range=a.map(b,function(a){return a.valueOf()}):delete this.range,this.fill()},getClassNames:function(b){var c=[],d=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),g=new Date;return b.getUTCFullYear()d||b.getUTCFullYear()===d&&b.getUTCMonth()>f)&&c.push("new"),this.focusDate&&b.valueOf()===this.focusDate.valueOf()&&c.push("focused"),this.o.todayHighlight&&b.getUTCFullYear()===g.getFullYear()&&b.getUTCMonth()===g.getMonth()&&b.getUTCDate()===g.getDate()&&c.push("today"),-1!==this.dates.contains(b)&&c.push("active"),(b.valueOf()this.o.endDate||-1!==a.inArray(b.getUTCDay(),this.o.daysOfWeekDisabled))&&c.push("disabled"),this.o.datesDisabled.length>0&&a.grep(this.o.datesDisabled,function(a){return e(b,a)}).length>0&&c.push("disabled","disabled-date"),this.range&&(b>this.range[0]&&b"),this.o.calendarWeeks)){var u=new Date(+n+(this.o.weekStart-n.getUTCDay()-7)%7*864e5),v=new Date(Number(u)+(11-u.getUTCDay())%7*864e5),w=new Date(Number(w=c(v.getUTCFullYear(),0,1))+(11-w.getUTCDay())%7*864e5),x=(v-w)/864e5/7+1;t.push(''+x+"")}if(s=this.getClassNames(n),s.push("day"),this.o.beforeShowDay!==a.noop){var y=this.o.beforeShowDay(this._utc_to_local(n));y===b?y={}:"boolean"==typeof y?y={enabled:y}:"string"==typeof y&&(y={classes:y}),y.enabled===!1&&s.push("disabled"),y.classes&&(s=s.concat(y.classes.split(/\s+/))),y.tooltip&&(d=y.tooltip)}s=a.unique(s),t.push('"+n.getUTCDate()+""),d=null,n.getUTCDay()===this.o.weekEnd&&t.push(""),n.setUTCDate(n.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(t.join(""));var z=this.picker.find(".datepicker-months").find("th:eq(1)").text(f).end().find("span").removeClass("active");if(a.each(this.dates,function(a,b){b.getUTCFullYear()===f&&z.eq(b.getUTCMonth()).addClass("active")}),(h>f||f>j)&&z.addClass("disabled"),f===h&&z.slice(0,i).addClass("disabled"),f===j&&z.slice(k+1).addClass("disabled"),this.o.beforeShowMonth!==a.noop){var A=this;a.each(z,function(b,c){if(!a(c).hasClass("disabled")){var d=new Date(f,b,1),e=A.o.beforeShowMonth(d);e===!1&&a(c).addClass("disabled")}})}t="",f=10*parseInt(f/10,10);var B=this.picker.find(".datepicker-years").find("th:eq(1)").text(f+"-"+(f+9)).end().find("td");f-=1;for(var C,D=a.map(this.dates,function(a){return a.getUTCFullYear()}),E=-1;11>E;E++)C=["year"],-1===E?C.push("old"):10===E&&C.push("new"),-1!==a.inArray(f,D)&&C.push("active"),(h>f||f>j)&&C.push("disabled"),t+=''+f+"",f+=1;B.html(t)}},updateNavArrows:function(){if(this._allow_update){var a=new Date(this.viewDate),b=a.getUTCFullYear(),c=a.getUTCMonth();switch(this.viewMode){case 0:this.picker.find(".prev").css(this.o.startDate!==-1/0&&b<=this.o.startDate.getUTCFullYear()&&c<=this.o.startDate.getUTCMonth()?{visibility:"hidden"}:{visibility:"visible"}),this.picker.find(".next").css(1/0!==this.o.endDate&&b>=this.o.endDate.getUTCFullYear()&&c>=this.o.endDate.getUTCMonth()?{visibility:"hidden"}:{visibility:"visible"});break;case 1:case 2:this.picker.find(".prev").css(this.o.startDate!==-1/0&&b<=this.o.startDate.getUTCFullYear()?{visibility:"hidden"}:{visibility:"visible"}),this.picker.find(".next").css(1/0!==this.o.endDate&&b>=this.o.endDate.getUTCFullYear()?{visibility:"hidden"}:{visibility:"visible"})}}},click:function(b){b.preventDefault();var d,e,f,g=a(b.target).closest("span, td, th");if(1===g.length)switch(g[0].nodeName.toLowerCase()){case"th":switch(g[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var h=q.modes[this.viewMode].navStep*("prev"===g[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,h),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,h),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var i=new Date;i=c(i.getFullYear(),i.getMonth(),i.getDate(),0,0,0),this.showMode(-2);var j="linked"===this.o.todayBtn?null:"view";this._setDate(i,j);break;case"clear":this.clearDates()}break;case"span":g.hasClass("disabled")||(this.viewDate.setUTCDate(1),g.hasClass("month")?(f=1,e=g.parent().find("span").index(g),d=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(e),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(c(d,e,f))):(f=1,e=0,d=parseInt(g.text(),10)||0,this.viewDate.setUTCFullYear(d),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(c(d,e,f))),this.showMode(-1),this.fill());break;case"td":g.hasClass("day")&&!g.hasClass("disabled")&&(f=parseInt(g.text(),10)||1,d=this.viewDate.getUTCFullYear(),e=this.viewDate.getUTCMonth(),g.hasClass("old")?0===e?(e=11,d-=1):e-=1:g.hasClass("new")&&(11===e?(e=0,d+=1):e+=1),this._setDate(c(d,e,f)))}this.picker.is(":visible")&&this._focused_from&&a(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(a){var b=this.dates.contains(a);if(a||this.dates.clear(),-1!==b?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(b):this.o.multidate===!1?(this.dates.clear(),this.dates.push(a)):this.dates.push(a),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(a,b){b&&"date"!==b||this._toggle_multidate(a&&new Date(a)),b&&"view"!==b||(this.viewDate=a&&new Date(a)),this.fill(),this.setValue(),b&&"view"===b||this._trigger("changeDate");var c;this.isInput?c=this.element:this.component&&(c=this.element.find("input")),c&&c.change(),!this.o.autoclose||b&&"date"!==b||this.hide()},moveMonth:function(a,c){if(!a)return b;if(!c)return a;var d,e,f=new Date(a.valueOf()),g=f.getUTCDate(),h=f.getUTCMonth(),i=Math.abs(c);if(c=c>0?1:-1,1===i)e=-1===c?function(){return f.getUTCMonth()===h}:function(){return f.getUTCMonth()!==d},d=h+c,f.setUTCMonth(d),(0>d||d>11)&&(d=(d+12)%12);else{for(var j=0;i>j;j++)f=this.moveMonth(f,c);d=f.getUTCMonth(),f.setUTCDate(g),e=function(){return d!==f.getUTCMonth()}}for(;e();)f.setUTCDate(--g),f.setUTCMonth(d);return f},moveYear:function(a,b){return this.moveMonth(a,12*b)},dateWithinRange:function(a){return a>=this.o.startDate&&a<=this.o.endDate},keydown:function(a){if(!this.picker.is(":visible"))return void(27===a.keyCode&&this.show());var b,c,e,f=!1,g=this.focusDate||this.viewDate;switch(a.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),a.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;b=37===a.keyCode?-1:1,a.ctrlKey?(c=this.moveYear(this.dates.get(-1)||d(),b),e=this.moveYear(g,b),this._trigger("changeYear",this.viewDate)):a.shiftKey?(c=this.moveMonth(this.dates.get(-1)||d(),b),e=this.moveMonth(g,b),this._trigger("changeMonth",this.viewDate)):(c=new Date(this.dates.get(-1)||d()),c.setUTCDate(c.getUTCDate()+b),e=new Date(g),e.setUTCDate(g.getUTCDate()+b)),this.dateWithinRange(e)&&(this.focusDate=this.viewDate=e,this.setValue(),this.fill(),a.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;b=38===a.keyCode?-1:1,a.ctrlKey?(c=this.moveYear(this.dates.get(-1)||d(),b),e=this.moveYear(g,b),this._trigger("changeYear",this.viewDate)):a.shiftKey?(c=this.moveMonth(this.dates.get(-1)||d(),b),e=this.moveMonth(g,b),this._trigger("changeMonth",this.viewDate)):(c=new Date(this.dates.get(-1)||d()),c.setUTCDate(c.getUTCDate()+7*b),e=new Date(g),e.setUTCDate(g.getUTCDate()+7*b)),this.dateWithinRange(e)&&(this.focusDate=this.viewDate=e,this.setValue(),this.fill(),a.preventDefault());break;case 32:break;case 13:g=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(g),f=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(a.preventDefault(),"function"==typeof a.stopPropagation?a.stopPropagation():a.cancelBubble=!0,this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(f){this._trigger(this.dates.length?"changeDate":"clearDate");var h;this.isInput?h=this.element:this.component&&(h=this.element.find("input")),h&&h.change()}},showMode:function(a){a&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+a))),this.picker.children("div").hide().filter(".datepicker-"+q.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var k=function(b,c){this.element=a(b),this.inputs=a.map(c.inputs,function(a){return a.jquery?a[0]:a}),delete c.inputs,m.call(a(this.inputs),c).bind("changeDate",a.proxy(this.dateUpdated,this)),this.pickers=a.map(this.inputs,function(b){return a(b).data("datepicker")}),this.updateDates()};k.prototype={updateDates:function(){this.dates=a.map(this.pickers,function(a){return a.getUTCDate()}),this.updateRanges()},updateRanges:function(){var b=a.map(this.dates,function(a){return a.valueOf()});a.each(this.pickers,function(a,c){c.setRange(b)})},dateUpdated:function(b){if(!this.updating){this.updating=!0;var c=a(b.target).data("datepicker"),d=c.getUTCDate(),e=a.inArray(b.target,this.inputs),f=e-1,g=e+1,h=this.inputs.length;if(-1!==e){if(a.each(this.pickers,function(a,b){b.getUTCDate()||b.setUTCDate(d)}),d=0&&dthis.dates[g])for(;h>g&&d>this.dates[g];)this.pickers[g++].setUTCDate(d);this.updateDates(),delete this.updating}}},remove:function(){a.map(this.pickers,function(a){a.remove()}),delete this.element.data().datepicker}};var l=a.fn.datepicker,m=function(c){var d=Array.apply(null,arguments);d.shift();var e;return this.each(function(){var f=a(this),i=f.data("datepicker"),l="object"==typeof c&&c;if(!i){var m=g(this,"date"),o=a.extend({},n,m,l),p=h(o.language),q=a.extend({},n,p,m,l);if(f.hasClass("input-daterange")||q.inputs){var r={inputs:q.inputs||f.find("input").toArray()};f.data("datepicker",i=new k(this,a.extend(q,r)))}else f.data("datepicker",i=new j(this,q))}return"string"==typeof c&&"function"==typeof i[c]&&(e=i[c].apply(i,d),e!==b)?!1:void 0}),e!==b?e:this};a.fn.datepicker=m;var n=a.fn.datepicker.defaults={autoclose:!1,beforeShowDay:a.noop,beforeShowMonth:a.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],datesDisabled:[],endDate:1/0,forceParse:!0, format:"yyyy-mm-dd",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,container:"body"},o=a.fn.datepicker.locale_opts=["format","rtl","weekStart"];a.fn.datepicker.Constructor=j;var p=a.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},q={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(a){return a%4===0&&a%100!==0||a%400===0},getDaysInMonth:function(a,b){return[31,q.isLeapYear(a)?29:28,31,30,31,30,31,31,30,31,30,31][b]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(a){var b=a.replace(this.validParts,"\x00").split("\x00"),c=a.match(this.validParts);if(!b||!b.length||!c||0===c.length)throw new Error("Invalid date format.");return{separators:b,parts:c}},parseDate:function(d,e,f){function g(){var a=this.slice(0,m[k].length),b=m[k].slice(0,a.length);return a.toLowerCase()===b.toLowerCase()}if(!d)return b;if(d instanceof Date)return d;"string"==typeof e&&(e=q.parseFormat(e));var h,i,k,l=/([\-+]\d+)([dmwy])/,m=d.match(/([\-+]\d+)([dmwy])/g);if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(d)){for(d=new Date,k=0;kb;)b+=12;for(b%=12,a.setUTCMonth(b);a.getUTCMonth()!==b;)a.setUTCDate(a.getUTCDate()-1);return a},d:function(a,b){return a.setUTCDate(b)}};t.M=t.MM=t.mm=t.m,t.dd=t.d,d=c(d.getFullYear(),d.getMonth(),d.getDate(),0,0,0);var u=e.parts.slice();if(m.length!==u.length&&(u=a(u).filter(function(b,c){return-1!==a.inArray(c,s)}).toArray()),m.length===u.length){var v;for(k=0,v=u.length;v>k;k++){if(n=parseInt(m[k],10),h=u[k],isNaN(n))switch(h){case"MM":o=a(p[f].months).filter(g),n=a.inArray(o[0],p[f].months)+1;break;case"M":o=a(p[f].monthsShort).filter(g),n=a.inArray(o[0],p[f].monthsShort)+1}r[h]=n}var w,x;for(k=0;k=g;g++)f.length&&b.push(f.shift()),b.push(e[c.parts[g]]);return b.join("")},headTemplate:'«»',contTemplate:'',footTemplate:''};q.template='
'+q.headTemplate+""+q.footTemplate+'
'+q.headTemplate+q.contTemplate+q.footTemplate+'
'+q.headTemplate+q.contTemplate+q.footTemplate+"
",a.fn.datepicker.DPGlobal=q,a.fn.datepicker.noConflict=function(){return a.fn.datepicker=l,this},a.fn.datepicker.version="1.4.0",a(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(b){var c=a(this);c.data("datepicker")||(b.preventDefault(),m.call(c,"show"))}),a(function(){m.call(a('[data-provide="datepicker-inline"]'))})}(window.jQuery); \ No newline at end of file diff --git a/ui/theme/default/scripts/plugins/bootstrap-rating.min.js b/ui/ui/scripts/plugins/bootstrap-rating.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/bootstrap-rating.min.js rename to ui/ui/scripts/plugins/bootstrap-rating.min.js diff --git a/ui/theme/default/scripts/plugins/bootstrap-slider.min.js b/ui/ui/scripts/plugins/bootstrap-slider.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/bootstrap-slider.min.js rename to ui/ui/scripts/plugins/bootstrap-slider.min.js diff --git a/ui/theme/default/scripts/plugins/c3.min.js b/ui/ui/scripts/plugins/c3.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/c3.min.js rename to ui/ui/scripts/plugins/c3.min.js diff --git a/ui/theme/default/scripts/plugins/d3.min.js b/ui/ui/scripts/plugins/d3.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/d3.min.js rename to ui/ui/scripts/plugins/d3.min.js diff --git a/ui/theme/default/scripts/plugins/fullcalendar.min.js b/ui/ui/scripts/plugins/fullcalendar.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/fullcalendar.min.js rename to ui/ui/scripts/plugins/fullcalendar.min.js diff --git a/ui/theme/default/scripts/plugins/index.html b/ui/ui/scripts/plugins/index.html similarity index 100% rename from ui/theme/default/scripts/plugins/index.html rename to ui/ui/scripts/plugins/index.html diff --git a/ui/theme/default/scripts/plugins/jquery.dataTables.min.js b/ui/ui/scripts/plugins/jquery.dataTables.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/jquery.dataTables.min.js rename to ui/ui/scripts/plugins/jquery.dataTables.min.js diff --git a/ui/theme/default/scripts/plugins/jquery.easypiechart.min.js b/ui/ui/scripts/plugins/jquery.easypiechart.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/jquery.easypiechart.min.js rename to ui/ui/scripts/plugins/jquery.easypiechart.min.js diff --git a/ui/theme/default/scripts/plugins/jquery.sparkline.min.js b/ui/ui/scripts/plugins/jquery.sparkline.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/jquery.sparkline.min.js rename to ui/ui/scripts/plugins/jquery.sparkline.min.js diff --git a/ui/theme/default/scripts/plugins/moment.min.js b/ui/ui/scripts/plugins/moment.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/moment.min.js rename to ui/ui/scripts/plugins/moment.min.js diff --git a/ui/theme/default/scripts/plugins/perfect-scrollbar.min.js b/ui/ui/scripts/plugins/perfect-scrollbar.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/perfect-scrollbar.min.js rename to ui/ui/scripts/plugins/perfect-scrollbar.min.js diff --git a/ui/theme/default/scripts/plugins/screenfull.js b/ui/ui/scripts/plugins/screenfull.js similarity index 98% rename from ui/theme/default/scripts/plugins/screenfull.js rename to ui/ui/scripts/plugins/screenfull.js index 9580b378..d7872df7 100644 --- a/ui/theme/default/scripts/plugins/screenfull.js +++ b/ui/ui/scripts/plugins/screenfull.js @@ -1,37 +1,37 @@ -!function(){ - "use strict"; - var isCommonjs="undefined"!=typeof module&&module.exports, - keyboardAllowed="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element, - fn=function(){ - for( - var val, - valLength, - fnMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"], - ["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"], - ["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"], - ["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"], - ["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]], - i=0, - l=fnMap.length, - ret={}; - l>i; - i++ - ) - if(val=fnMap[i], - val&&val[1]in document){ - for(i=0,valLength=val.length;valLength>i;i++) - ret[fnMap[0][i]]=val[i]; - return ret - } - return!1 - }(), - screenfull={ - request:function(elem){ - var request=fn.requestFullscreen; - elem=elem||document.documentElement,/5\.1[\.\d]* Safari/.test(navigator.userAgent)?elem[request]():elem[request](keyboardAllowed&&Element.ALLOW_KEYBOARD_INPUT) - }, - exit:function(){ - document[fn.exitFullscreen]() - }, - toggle:function(elem){this.isFullscreen?this.exit():this.request(elem)},raw:fn +!function(){ + "use strict"; + var isCommonjs="undefined"!=typeof module&&module.exports, + keyboardAllowed="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element, + fn=function(){ + for( + var val, + valLength, + fnMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"], + ["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"], + ["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"], + ["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"], + ["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]], + i=0, + l=fnMap.length, + ret={}; + l>i; + i++ + ) + if(val=fnMap[i], + val&&val[1]in document){ + for(i=0,valLength=val.length;valLength>i;i++) + ret[fnMap[0][i]]=val[i]; + return ret + } + return!1 + }(), + screenfull={ + request:function(elem){ + var request=fn.requestFullscreen; + elem=elem||document.documentElement,/5\.1[\.\d]* Safari/.test(navigator.userAgent)?elem[request]():elem[request](keyboardAllowed&&Element.ALLOW_KEYBOARD_INPUT) + }, + exit:function(){ + document[fn.exitFullscreen]() + }, + toggle:function(elem){this.isFullscreen?this.exit():this.request(elem)},raw:fn };return fn?(Object.defineProperties(screenfull,{isFullscreen:{get:function(){return!!document[fn.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[fn.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return!!document[fn.fullscreenEnabled]}}}),void(isCommonjs?module.exports=screenfull:window.screenfull=screenfull)):void(isCommonjs?module.exports=!1:window.screenfull=!1)}(); \ No newline at end of file diff --git a/ui/theme/default/scripts/plugins/select2.min.js b/ui/ui/scripts/plugins/select2.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/select2.min.js rename to ui/ui/scripts/plugins/select2.min.js diff --git a/ui/theme/default/scripts/plugins/summernote.min.js b/ui/ui/scripts/plugins/summernote.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/summernote.min.js rename to ui/ui/scripts/plugins/summernote.min.js diff --git a/ui/theme/default/scripts/plugins/waves.min.js b/ui/ui/scripts/plugins/waves.min.js similarity index 100% rename from ui/theme/default/scripts/plugins/waves.min.js rename to ui/ui/scripts/plugins/waves.min.js diff --git a/ui/theme/default/scripts/sparklines.init.js b/ui/ui/scripts/sparklines.init.js similarity index 100% rename from ui/theme/default/scripts/sparklines.init.js rename to ui/ui/scripts/sparklines.init.js diff --git a/ui/theme/default/scripts/tables.init.js b/ui/ui/scripts/tables.init.js similarity index 100% rename from ui/theme/default/scripts/tables.init.js rename to ui/ui/scripts/tables.init.js diff --git a/ui/theme/default/scripts/vendors.js b/ui/ui/scripts/vendors.js similarity index 100% rename from ui/theme/default/scripts/vendors.js rename to ui/ui/scripts/vendors.js diff --git a/ui/theme/default/sections/footer.tpl b/ui/ui/sections/footer.tpl similarity index 97% rename from ui/theme/default/sections/footer.tpl rename to ui/ui/sections/footer.tpl index a3911732..b1c593dd 100644 --- a/ui/theme/default/sections/footer.tpl +++ b/ui/ui/sections/footer.tpl @@ -1,63 +1,63 @@ - - - - - - - - - - - - - - - - - - - - -{if isset($xfooter)} - {$xfooter} -{/if} - - + + + + + + + + + + + + + + + + + + + + +{if isset($xfooter)} + {$xfooter} +{/if} + + \ No newline at end of file diff --git a/ui/theme/default/sections/header.tpl b/ui/ui/sections/header.tpl similarity index 97% rename from ui/theme/default/sections/header.tpl rename to ui/ui/sections/header.tpl index 9a6705e4..d320375c 100644 --- a/ui/theme/default/sections/header.tpl +++ b/ui/ui/sections/header.tpl @@ -1,309 +1,309 @@ - - - - - - {$_title} - - - - - - - - - - - - - - - - - - - - - - - -{if isset($xheader)} - {$xheader} -{/if} - - - - - - - -
- - -
-
- - {if isset($notify)} - {$notify} + + + + + + {$_title} + + + + + + + + + + + + + + + + + + + + + + + +{if isset($xheader)} + {$xheader} +{/if} + + + + + + + +
+ + +
+
+ + {if isset($notify)} + {$notify} {/if} \ No newline at end of file diff --git a/ui/theme/default/sections/index.html b/ui/ui/sections/index.html similarity index 100% rename from ui/theme/default/sections/index.html rename to ui/ui/sections/index.html diff --git a/ui/theme/default/sections/user-footer.tpl b/ui/ui/sections/user-footer.tpl similarity index 97% rename from ui/theme/default/sections/user-footer.tpl rename to ui/ui/sections/user-footer.tpl index 095fd2cf..3e5fa2ed 100644 --- a/ui/theme/default/sections/user-footer.tpl +++ b/ui/ui/sections/user-footer.tpl @@ -1,64 +1,64 @@ -
-
-
- - - - - - - - - - - - - - - - - - -{if isset($xfooter)} - {$xfooter} -{/if} - - +
+
+
+ + + + + + + + + + + + + + + + + + +{if isset($xfooter)} + {$xfooter} +{/if} + + \ No newline at end of file diff --git a/ui/theme/default/sections/user-header.tpl b/ui/ui/sections/user-header.tpl similarity index 97% rename from ui/theme/default/sections/user-header.tpl rename to ui/ui/sections/user-header.tpl index 18947d58..60f29081 100644 --- a/ui/theme/default/sections/user-header.tpl +++ b/ui/ui/sections/user-header.tpl @@ -1,177 +1,177 @@ - - - - - - {$_title} - - - - - - - - - - - - - - - - - - - - - - - -{if isset($xheader)} - {$xheader} -{/if} - - - - - - - -
- - -
-
- - {if isset($notify)} - {$notify} + + + + + + {$_title} + + + + + + + + + + + + + + + + + + + + + + + +{if isset($xheader)} + {$xheader} +{/if} + + + + + + + +
+ + +
+
+ + {if isset($notify)} + {$notify} {/if} \ No newline at end of file diff --git a/ui/theme/default/styles/bootstrap.min.css b/ui/ui/styles/bootstrap.min.css similarity index 100% rename from ui/theme/default/styles/bootstrap.min.css rename to ui/ui/styles/bootstrap.min.css diff --git a/ui/theme/default/styles/index.html b/ui/ui/styles/index.html similarity index 100% rename from ui/theme/default/styles/index.html rename to ui/ui/styles/index.html diff --git a/ui/theme/default/styles/main.min.css b/ui/ui/styles/main.min.css similarity index 100% rename from ui/theme/default/styles/main.min.css rename to ui/ui/styles/main.min.css diff --git a/ui/theme/default/styles/plugins/bootstrap-colorpicker.css b/ui/ui/styles/plugins/bootstrap-colorpicker.css similarity index 100% rename from ui/theme/default/styles/plugins/bootstrap-colorpicker.css rename to ui/ui/styles/plugins/bootstrap-colorpicker.css diff --git a/ui/theme/default/styles/plugins/bootstrap-colorpicker.min.css b/ui/ui/styles/plugins/bootstrap-colorpicker.min.css similarity index 100% rename from ui/theme/default/styles/plugins/bootstrap-colorpicker.min.css rename to ui/ui/styles/plugins/bootstrap-colorpicker.min.css diff --git a/ui/theme/default/styles/plugins/bootstrap-datepicker.css b/ui/ui/styles/plugins/bootstrap-datepicker.css similarity index 100% rename from ui/theme/default/styles/plugins/bootstrap-datepicker.css rename to ui/ui/styles/plugins/bootstrap-datepicker.css diff --git a/ui/theme/default/styles/plugins/bootstrap-slider.css b/ui/ui/styles/plugins/bootstrap-slider.css similarity index 100% rename from ui/theme/default/styles/plugins/bootstrap-slider.css rename to ui/ui/styles/plugins/bootstrap-slider.css diff --git a/ui/theme/default/styles/plugins/c3.css b/ui/ui/styles/plugins/c3.css similarity index 100% rename from ui/theme/default/styles/plugins/c3.css rename to ui/ui/styles/plugins/c3.css diff --git a/ui/theme/default/styles/plugins/fullcalendar.css b/ui/ui/styles/plugins/fullcalendar.css similarity index 100% rename from ui/theme/default/styles/plugins/fullcalendar.css rename to ui/ui/styles/plugins/fullcalendar.css diff --git a/ui/theme/default/styles/plugins/index.html b/ui/ui/styles/plugins/index.html similarity index 100% rename from ui/theme/default/styles/plugins/index.html rename to ui/ui/styles/plugins/index.html diff --git a/ui/theme/default/styles/plugins/perfect-scrollbar.css b/ui/ui/styles/plugins/perfect-scrollbar.css similarity index 100% rename from ui/theme/default/styles/plugins/perfect-scrollbar.css rename to ui/ui/styles/plugins/perfect-scrollbar.css diff --git a/ui/theme/default/styles/plugins/select2.css b/ui/ui/styles/plugins/select2.css similarity index 100% rename from ui/theme/default/styles/plugins/select2.css rename to ui/ui/styles/plugins/select2.css diff --git a/ui/theme/default/styles/plugins/summernote.css b/ui/ui/styles/plugins/summernote.css similarity index 100% rename from ui/theme/default/styles/plugins/summernote.css rename to ui/ui/styles/plugins/summernote.css diff --git a/ui/theme/default/styles/plugins/waves.css b/ui/ui/styles/plugins/waves.css similarity index 100% rename from ui/theme/default/styles/plugins/waves.css rename to ui/ui/styles/plugins/waves.css diff --git a/ui/theme/default/user-activation-list.tpl b/ui/ui/user-activation-list.tpl similarity index 96% rename from ui/theme/default/user-activation-list.tpl rename to ui/ui/user-activation-list.tpl index 1582f61b..5f1bc616 100644 --- a/ui/theme/default/user-activation-list.tpl +++ b/ui/ui/user-activation-list.tpl @@ -1,40 +1,40 @@ -{include file="sections/user-header.tpl"} - -
-
-
-
{$_L['List_Activated_Voucher']}
-
- - - - - - - - - - - - - - {foreach $d as $ds} - - - - - - - - - {/foreach} - -
{$_L['Username']}{$_L['Plan_Name']}{$_L['Type']}{$_L['Created_On']}{$_L['Expires_On']}{$_L['Method']}
{$ds['username']}{$ds['plan_name']}{$ds['type']}{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}{$ds['method']}
- {$paginator['contents']} -
-
-
-
- - -{include file="sections/user-footer.tpl"} +{include file="sections/user-header.tpl"} + +
+
+
+
{$_L['List_Activated_Voucher']}
+
+ + + + + + + + + + + + + + {foreach $d as $ds} + + + + + + + + + {/foreach} + +
{$_L['Username']}{$_L['Plan_Name']}{$_L['Type']}{$_L['Created_On']}{$_L['Expires_On']}{$_L['Method']}
{$ds['username']}{$ds['plan_name']}{$ds['type']}{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}{$ds['method']}
+ {$paginator['contents']} +
+
+
+
+ + +{include file="sections/user-footer.tpl"} diff --git a/ui/theme/default/user-activation.tpl b/ui/ui/user-activation.tpl similarity index 97% rename from ui/theme/default/user-activation.tpl rename to ui/ui/user-activation.tpl index 4089188e..6cb35b3b 100644 --- a/ui/theme/default/user-activation.tpl +++ b/ui/ui/user-activation.tpl @@ -1,28 +1,28 @@ -{include file="sections/user-header.tpl"} - -
-
-
-
{$_L['Voucher_Activation']}
-
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
-
-
-
-
- -{include file="sections/user-footer.tpl"} +{include file="sections/user-header.tpl"} + +
+
+
+
{$_L['Voucher_Activation']}
+
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+
+
+
+
+ +{include file="sections/user-footer.tpl"} diff --git a/ui/theme/default/user-change-password.tpl b/ui/ui/user-change-password.tpl similarity index 97% rename from ui/theme/default/user-change-password.tpl rename to ui/ui/user-change-password.tpl index 17e25c7c..2feef971 100644 --- a/ui/theme/default/user-change-password.tpl +++ b/ui/ui/user-change-password.tpl @@ -1,41 +1,41 @@ -{include file="sections/user-header.tpl"} - -
-
-
-
{$_L['Change_Password']}
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
- -{include file="sections/user-footer.tpl"} +{include file="sections/user-header.tpl"} + +
+
+
+
{$_L['Change_Password']}
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+ +
+
+
+
+ +{include file="sections/user-footer.tpl"} diff --git a/ui/theme/default/user-dashboard.tpl b/ui/ui/user-dashboard.tpl similarity index 97% rename from ui/theme/default/user-dashboard.tpl rename to ui/ui/user-dashboard.tpl index 85d26c61..8b813614 100644 --- a/ui/theme/default/user-dashboard.tpl +++ b/ui/ui/user-dashboard.tpl @@ -1,58 +1,58 @@ -{include file="sections/user-header.tpl"} - -
-
-
-
{$_L['Account_Information']}
- - - - - - - - - - - - - - - - - -
{$_L['Username']}{$_bill['username']}
{$_L['Plan_Name']}{$_bill['namebp']}
{$_L['Created_On']}{if $_bill['time'] ne ''}{date($_c['date_format'], strtotime($_bill['recharged_on']))} {$_bill['time']}{/if} 
{$_L['Expires_On']}{if $_bill['time'] ne ''}{date($_c['date_format'], strtotime($_bill['expiration']))} {$_bill['time']}{/if} 
-
-
-
-
{$_L['Voucher_Activation']}
-
-
-
- -
- -
-
- -
-
- -
-
-
-
-
-
-
-
-
-
{$_L['Announcement']}
-
- {include file="$_path/../pages/Announcement.html"} -
-
-
-
- -{include file="sections/user-footer.tpl"} +{include file="sections/user-header.tpl"} + +
+
+
+
{$_L['Account_Information']}
+ + + + + + + + + + + + + + + + + +
{$_L['Username']}{$_bill['username']}
{$_L['Plan_Name']}{$_bill['namebp']}
{$_L['Created_On']}{if $_bill['time'] ne ''}{date($_c['date_format'], strtotime($_bill['recharged_on']))} {$_bill['time']}{/if} 
{$_L['Expires_On']}{if $_bill['time'] ne ''}{date($_c['date_format'], strtotime($_bill['expiration']))} {$_bill['time']}{/if} 
+
+
+
+
{$_L['Voucher_Activation']}
+
+
+
+ +
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
{$_L['Announcement']}
+
+ {include file="$_path/../pages/Announcement.html"} +
+
+
+
+ +{include file="sections/user-footer.tpl"} diff --git a/ui/theme/default/user-order.tpl b/ui/ui/user-order.tpl similarity index 100% rename from ui/theme/default/user-order.tpl rename to ui/ui/user-order.tpl diff --git a/ui/theme/default/user-pages.tpl b/ui/ui/user-pages.tpl similarity index 96% rename from ui/theme/default/user-pages.tpl rename to ui/ui/user-pages.tpl index d98c102b..0b582520 100644 --- a/ui/theme/default/user-pages.tpl +++ b/ui/ui/user-pages.tpl @@ -1,14 +1,14 @@ -{include file="sections/user-header.tpl"} - -
-
-
-
{$_L[$pageHeader]}
-
- {include file="$_path/../pages/$PageFile.html"} -
-
-
-
- -{include file="sections/user-footer.tpl"} +{include file="sections/user-header.tpl"} + +
+
+
+
{$_L[$pageHeader]}
+
+ {include file="$_path/../pages/$PageFile.html"} +
+
+
+
+ +{include file="sections/user-footer.tpl"} diff --git a/ui/theme/default/user-profile.tpl b/ui/ui/user-profile.tpl similarity index 97% rename from ui/theme/default/user-profile.tpl rename to ui/ui/user-profile.tpl index 5f347103..153df8b9 100644 --- a/ui/theme/default/user-profile.tpl +++ b/ui/ui/user-profile.tpl @@ -1,50 +1,50 @@ -{include file="sections/user-header.tpl"} - -
-
-
-
{$_L['Edit_User']}
-
- -
- -
- -
- -
-
-
- -
- -
-
- -
- -
- -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
- -{include file="sections/user-footer.tpl"} +{include file="sections/user-header.tpl"} + +
+
+
+
{$_L['Edit_User']}
+
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+ +
+
+
+
+ +{include file="sections/user-footer.tpl"} diff --git a/ui/theme/default/users-add.tpl b/ui/ui/users-add.tpl similarity index 97% rename from ui/theme/default/users-add.tpl rename to ui/ui/users-add.tpl index 37429388..b64e30fa 100644 --- a/ui/theme/default/users-add.tpl +++ b/ui/ui/users-add.tpl @@ -1,58 +1,58 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Add_New_Administrator']}
-
- -
-
- -
- -
-
-
- -
- -
-
-
- -
- - {$_L['user_type_help']} -
-
-
- -
- -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Add_New_Administrator']}
+
+ +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + {$_L['user_type_help']} +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/users-edit.tpl b/ui/ui/users-edit.tpl similarity index 97% rename from ui/theme/default/users-edit.tpl rename to ui/ui/users-edit.tpl index 3d50a6a3..5c03b9b2 100644 --- a/ui/theme/default/users-edit.tpl +++ b/ui/ui/users-edit.tpl @@ -1,62 +1,62 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Edit_User']}
-
- -
- -
- -
- -
-
-
- -
- -
-
- {if ($_admin['id']) neq ($d['id'])} -
- -
- - {$_L['user_type_help']} -
-
- {/if} -
- -
- - {$_L['password_change_help']} -
-
-
- -
- -
-
- -
-
- - Or {$_L['Cancel']} -
-
-
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Edit_User']}
+
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+
+ {if ($_admin['id']) neq ($d['id'])} +
+ +
+ + {$_L['user_type_help']} +
+
+ {/if} +
+ +
+ + {$_L['password_change_help']} +
+
+
+ +
+ +
+
+ +
+
+ + Or {$_L['Cancel']} +
+
+
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/users.tpl b/ui/ui/users.tpl similarity index 97% rename from ui/theme/default/users.tpl rename to ui/ui/users.tpl index 92b35f50..1104a84f 100644 --- a/ui/theme/default/users.tpl +++ b/ui/ui/users.tpl @@ -1,61 +1,61 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Manage_Administrator']}
-
-
-
- -
-   -
-
- - - - - - - - - - - - {foreach $d as $ds} - - - - - - - - {/foreach} - -
{$_L['Username']}{$_L['Full_Name']}{$_L['Type']}{$_L['Last_Login']}{$_L['Manage']}
{$ds['username']}{$ds['fullname']}{$ds['user_type']}{$ds['last_login']} - {$_L['Edit']} - {if ($_admin['username']) neq ($ds['username'])} - {$_L['Delete']} - {/if} -
-
- {$paginator['contents']} -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Manage_Administrator']}
+
+
+
+ +
+   +
+
+ + + + + + + + + + + + {foreach $d as $ds} + + + + + + + + {/foreach} + +
{$_L['Username']}{$_L['Full_Name']}{$_L['Type']}{$_L['Last_Login']}{$_L['Manage']}
{$ds['username']}{$ds['fullname']}{$ds['user_type']}{$ds['last_login']} + {$_L['Edit']} + {if ($_admin['username']) neq ($ds['username'])} + {$_L['Delete']} + {/if} +
+
+ {$paginator['contents']} +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/voucher-add.tpl b/ui/ui/voucher-add.tpl similarity index 97% rename from ui/theme/default/voucher-add.tpl rename to ui/ui/voucher-add.tpl index 3662f0a0..ef3ccb3a 100644 --- a/ui/theme/default/voucher-add.tpl +++ b/ui/ui/voucher-add.tpl @@ -1,60 +1,60 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Add_Voucher']}
-
- -
-
- -
- {$_L['Hotspot_Plans']} - {$_L['PPPOE_Plans']} -
-
-
- -
- -
-
-
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
-
- -
-
-
- -
-
-
-
- -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Add_Voucher']}
+
+ +
+
+ +
+ {$_L['Hotspot_Plans']} + {$_L['PPPOE_Plans']} +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+ +
+
+
+ +
+
+
+
+ +{include file="sections/footer.tpl"} diff --git a/ui/theme/default/voucher.tpl b/ui/ui/voucher.tpl similarity index 97% rename from ui/theme/default/voucher.tpl rename to ui/ui/voucher.tpl index 472516be..381792da 100644 --- a/ui/theme/default/voucher.tpl +++ b/ui/ui/voucher.tpl @@ -1,72 +1,72 @@ -{include file="sections/header.tpl"} - -
-
-
-
{$_L['Prepaid_Vouchers']}
-
-
-
- -
-
- -
  -
-
- - - - - - - - - - - - - - - {foreach $d as $ds} - - - - - - - - - - - {/foreach} - -
ID{$_L['Type']}{$_L['Routers']}{$_L['Plan_Name']}{$_L['Code_Voucher']}{$_L['Status_Voucher']}{$_L['Customers']}{$_L['Manage']}
{$ds['id']}{$ds['type']}{$ds['routers']}{$ds['name_plan']}{$ds['code']}{if $ds['status'] eq '0'} {else} {/if}{if $ds['user'] eq '0'} - {else} {$ds['user']} {/if} - {$_L['Delete']} -
-
- {$paginator['contents']} -
-
-
-
- - -{include file="sections/footer.tpl"} +{include file="sections/header.tpl"} + +
+
+
+
{$_L['Prepaid_Vouchers']}
+
+
+
+ +
+
+ +
  +
+
+ + + + + + + + + + + + + + + {foreach $d as $ds} + + + + + + + + + + + {/foreach} + +
ID{$_L['Type']}{$_L['Routers']}{$_L['Plan_Name']}{$_L['Code_Voucher']}{$_L['Status_Voucher']}{$_L['Customers']}{$_L['Manage']}
{$ds['id']}{$ds['type']}{$ds['routers']}{$ds['name_plan']}{$ds['code']}{if $ds['status'] eq '0'} {else} {/if}{if $ds['user'] eq '0'} - {else} {$ds['user']} {/if} + {$_L['Delete']} +
+
+ {$paginator['contents']} +
+
+
+
+ + +{include file="sections/footer.tpl"}