change template, no themes

This commit is contained in:
Ibnu Maksum 2022-09-06 10:31:33 +07:00
parent deecd28cf7
commit 41aa9f74ea
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
137 changed files with 3972 additions and 4082 deletions

View File

@ -71,11 +71,11 @@ function _notify($msg, $type = 'e')
} }
require_once('system/vendors/smarty/libs/Smarty.class.php'); 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'; $lan_file = 'system/lan/' . $config['language'] . '/common.lan.php';
require($lan_file); require($lan_file);
$ui = new Smarty(); $ui = new Smarty();
$ui->setTemplateDir('ui/theme/' . $config['theme'] . '/'); $ui->setTemplateDir('ui/ui/');
$ui->setCompileDir('ui/compiled/'); $ui->setCompileDir('ui/compiled/');
$ui->setConfigDir('ui/conf/'); $ui->setConfigDir('ui/conf/');
$ui->setCacheDir('ui/cache/'); $ui->setCacheDir('ui/cache/');

View File

@ -1,94 +0,0 @@
{include file="sections/header.tpl"}
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" >
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['General_Settings']}</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">{$_L['App_Name']}</label>
<div class="col-md-6">
<input type="text" required class="form-control" id="company" name="company" value="{$_c['CompanyName']}">
<span class="help-block">{$_L['App_Name_Help_Text']}</span>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{$_L['Address']}</label>
<div class="col-md-6">
<textarea class="form-control" id="address" name="address" rows="3">{$_c['address']}</textarea>
<span class="help-block">{$_L['You_can_use_html_tag']}</span>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{$_L['Phone_Number']}</label>
<div class="col-md-6">
<input type="text" class="form-control" id="phone" name="phone" value="{$_c['phone']}">
</div>
</div>
<div class="form-group hidden">
<label class="col-md-2 control-label">Theme</label>
<div class="col-md-6">
<select name="theme" id="theme" class="form-control">
<option value="default" {if $_c['theme'] eq 'default'}selected="selected" {/if}>Default</option>
</select>
</div>
</div>
<div class="form-group hidden">
<label class="col-md-2 control-label">Payment Gateway</label>
<div class="col-md-6">
<select name="theme" id="theme" class="form-control">
<option value="none">None</option>
<option value="xendit" {if $_c['payment_gateway'] eq 'xendit'}selected="selected" {/if}>Xendit</option>
<option value="midtrans" {if $_c['payment_gateway'] eq 'midtrans'}selected="selected" {/if}>Midtrans</option>
</select>
</div>
</div>
</div>
<div class="panel-heading">Telegram Notification</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">Telegram Bot Token</label>
<div class="col-md-6">
<input type="text" class="form-control" id="telegram_bot" name="telegram_bot" value="{$_c['telegram_bot']}" placeholder="123456:asdasgdkuasghddlashdashldhalskdklasd">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Telegram Target ID</label>
<div class="col-md-6">
<input type="text" class="form-control" id="telegram_target_id" name="telegram_target_id" value="{$_c['telegram_target_id']}" placeholder="12345678">
</div>
</div>
</div>
<div class="panel-heading">Whatsapp Notification</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">Server URL</label>
<div class="col-md-6">
<input type="text" class="form-control" id="sms_url" name="sms_url" value="{$_c['sms_url']}" placeholder="https://domain/?param_number=[number]&param_text=[text]&secret=">
<p class="help-block">Must include <b>[text]</b> &amp; <b>[number]</b>, it will be replaced.</p>
</div>
</div>
</div>
<div class="panel-heading">Invoice</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">Note Invoice</label>
<div class="col-md-6">
<textarea class="form-control" id="note" name="note" rows="3">{$_c['note']}</textarea>
<span class="help-block">{$_L['You_can_use_html_tag']}</span>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
{include file="sections/footer.tpl"}

View File

@ -1,8 +0,0 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -1,8 +0,0 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -1,10 +1,10 @@
{include file="sections/user-header.tpl"} {include file="sections/user-header.tpl"}
<div class="page page-err clearfix"> <div class="page page-err clearfix">
<div class="err-container"> <div class="err-container">
<h1 class="m404 mb0">404 <a href="{$_url}home" class="ion ion-forward" title="go to dashboard"></a></h1> <h1 class="m404 mb0">404 <a href="{$_url}home" class="ion ion-forward" title="go to dashboard"></a></h1>
<p class="text-desc mb20">Coming Soon!! Next Version...</p> <p class="text-desc mb20">Coming Soon!! Next Version...</p>
</div> </div>
</div> </div>
{include file="sections/user-footer.tpl"} {include file="sections/user-footer.tpl"}

View File

@ -1,10 +1,10 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="page page-err clearfix"> <div class="page page-err clearfix">
<div class="err-container"> <div class="err-container">
<h1 class="m404 mb0">404 <a href="{$_url}dashboard" class="ion ion-forward" title="go to dashboard"></a></h1> <h1 class="m404 mb0">404 <a href="{$_url}dashboard" class="ion ion-forward" title="go to dashboard"></a></h1>
<p class="text-desc mb20">Coming Soon!! Next Version...</p> <p class="text-desc mb20">Coming Soon!! Next Version...</p>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,72 +1,72 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>{$_title} - {$_L['Login']}</title> <title>{$_title} - {$_L['Login']}</title>
<link rel="shortcut icon" href="{$_theme}/images/logo.png" type="image/x-icon" /> <link rel="shortcut icon" href="{$_theme}/images/logo.png" type="image/x-icon" />
<!-- Icons --> <!-- Icons -->
<link rel="stylesheet" href="{$_theme}/fonts/ionicons/css/ionicons.min.css"> <link rel="stylesheet" href="{$_theme}/fonts/ionicons/css/ionicons.min.css">
<link rel="stylesheet" href="{$_theme}/fonts/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="{$_theme}/fonts/font-awesome/css/font-awesome.min.css">
<!-- Plugins --> <!-- Plugins -->
<link rel="stylesheet" href="{$_theme}/styles/plugins/waves.css"> <link rel="stylesheet" href="{$_theme}/styles/plugins/waves.css">
<link rel="stylesheet" href="{$_theme}/styles/plugins/perfect-scrollbar.css"> <link rel="stylesheet" href="{$_theme}/styles/plugins/perfect-scrollbar.css">
<!-- Css/Less Stylesheets --> <!-- Css/Less Stylesheets -->
<link rel="stylesheet" href="{$_theme}/styles/bootstrap.min.css"> <link rel="stylesheet" href="{$_theme}/styles/bootstrap.min.css">
<link rel="stylesheet" href="{$_theme}/styles/main.min.css"> <link rel="stylesheet" href="{$_theme}/styles/main.min.css">
<!-- <link href='http://fonts.googleapis.com/css?family=Roboto:400,500,700,300' rel='stylesheet' type='text/css'> --> <!-- <link href='http://fonts.googleapis.com/css?family=Roboto:400,500,700,300' rel='stylesheet' type='text/css'> -->
<!-- Match Media polyfill for IE9 --> <!-- Match Media polyfill for IE9 -->
<!--[if IE 9]> <script src="{$_theme}/scripts/ie/matchMedia.js"></script> <![endif]--> <!--[if IE 9]> <script src="{$_theme}/scripts/ie/matchMedia.js"></script> <![endif]-->
</head> </head>
<body id="app" class="app off-canvas body-full"> <body id="app" class="app off-canvas body-full">
<div class="main-container clearfix"> <div class="main-container clearfix">
<div class="content-container" id="content"> <div class="content-container" id="content">
<div class="page page-auth"> <div class="page page-auth">
<div class="auth-container"> <div class="auth-container">
<div class="form-head mb20"> <div class="form-head mb20">
<h1 class="site-logo h2 mb5 mt5 text-center text-uppercase text-bold">{$_L['Logo']}</h1> <h1 class="site-logo h2 mb5 mt5 text-center text-uppercase text-bold">{$_L['Logo']}</h1>
<h5 class="text-normal h5 text-center">{$_L['Sign_In_Admin']}</h5> <h5 class="text-normal h5 text-center">{$_L['Sign_In_Admin']}</h5>
</div> </div>
{if isset($notify)} {if isset($notify)}
{$notify} {$notify}
{/if} {/if}
<div class="form-container"> <div class="form-container">
<form class="form-horizontal" action="{$_url}admin/post" method="post"> <form class="form-horizontal" action="{$_url}admin/post" method="post">
<div class="md-input-container md-float-label"> <div class="md-input-container md-float-label">
<input type="text" name="username" class="md-input"> <input type="text" name="username" class="md-input">
<label>{$_L['Username']}</label> <label>{$_L['Username']}</label>
</div> </div>
<div class="md-input-container md-float-label"> <div class="md-input-container md-float-label">
<input type="password" name="password" class="md-input"> <input type="password" name="password" class="md-input">
<label>{$_L['Password']}</label> <label>{$_L['Password']}</label>
</div> </div>
<div class="clearfix"> <div class="clearfix">
<div class="ui-checkbox ui-checkbox-primary right"> <div class="ui-checkbox ui-checkbox-primary right">
<label> <label>
<input type="checkbox"> <input type="checkbox">
<span>Remember me</span> <span>Remember me</span>
</label> </label>
</div> </div>
</div> </div>
<div class="btn-group btn-group-justified mb15"> <div class="btn-group btn-group-justified mb15">
<div class="btn-group"> <div class="btn-group">
<button type="submit" class="btn btn-success">{$_L['Login']}</button> <button type="submit" class="btn btn-success">{$_L['Login']}</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<script src="scripts/vendors.js"></script> <script src="scripts/vendors.js"></script>
</body> </body>
</html> </html>

View File

@ -1,80 +1,80 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Localisation']}</div> <div class="panel-heading">{$_L['Localisation']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/localisation-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}settings/localisation-post" >
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Timezone']}</label> <label class="col-md-2 control-label">{$_L['Timezone']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select name="tzone" id="tzone" class="form-control"> <select name="tzone" id="tzone" class="form-control">
{foreach $tlist as $value => $label} {foreach $tlist as $value => $label}
<option value="{$value}" {if $_c['timezone'] eq $value}selected="selected" {/if}>{$label}</option> <option value="{$value}" {if $_c['timezone'] eq $value}selected="selected" {/if}>{$label}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Date_Format']}</label> <label class="col-md-2 control-label">{$_L['Date_Format']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select class="form-control" name="date_format" id="date_format"> <select class="form-control" name="date_format" id="date_format">
<option value="d/m/Y" {if $_c['date_format'] eq 'd/m/Y'} selected="selected" {/if}>{date('d/m/Y')}</option> <option value="d/m/Y" {if $_c['date_format'] eq 'd/m/Y'} selected="selected" {/if}>{date('d/m/Y')}</option>
<option value="d.m.Y" {if $_c['date_format'] eq 'd.m.Y'} selected="selected" {/if}>{date('d.m.Y')}</option> <option value="d.m.Y" {if $_c['date_format'] eq 'd.m.Y'} selected="selected" {/if}>{date('d.m.Y')}</option>
<option value="d-m-Y" {if $_c['date_format'] eq 'd-m-Y'} selected="selected" {/if}>{date('d-m-Y')}</option> <option value="d-m-Y" {if $_c['date_format'] eq 'd-m-Y'} selected="selected" {/if}>{date('d-m-Y')}</option>
<option value="m/d/Y" {if $_c['date_format'] eq 'm/d/Y'} selected="selected" {/if}>{date('m/d/Y')}</option> <option value="m/d/Y" {if $_c['date_format'] eq 'm/d/Y'} selected="selected" {/if}>{date('m/d/Y')}</option>
<option value="Y/m/d" {if $_c['date_format'] eq 'Y/m/d'} selected="selected" {/if}>{date('Y/m/d')}</option> <option value="Y/m/d" {if $_c['date_format'] eq 'Y/m/d'} selected="selected" {/if}>{date('Y/m/d')}</option>
<option value="Y-m-d" {if $_c['date_format'] eq 'Y-m-d'} selected="selected" {/if}>{date('Y-m-d')}</option> <option value="Y-m-d" {if $_c['date_format'] eq 'Y-m-d'} selected="selected" {/if}>{date('Y-m-d')}</option>
<option value="M d Y" {if $_c['date_format'] eq 'M d Y'} selected="selected" {/if}>{date('M d Y')}</option> <option value="M d Y" {if $_c['date_format'] eq 'M d Y'} selected="selected" {/if}>{date('M d Y')}</option>
<option value="d M Y" {if $_c['date_format'] eq 'd M Y'} selected="selected" {/if}>{date('d M Y')}</option> <option value="d M Y" {if $_c['date_format'] eq 'd M Y'} selected="selected" {/if}>{date('d M Y')}</option>
<option value="jS M y" {if $_c['date_format'] eq 'jS M y'} selected="selected" {/if}>{date('jS M y')}</option> <option value="jS M y" {if $_c['date_format'] eq 'jS M y'} selected="selected" {/if}>{date('jS M y')}</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Default_Language']}</label> <label class="col-md-2 control-label">{$_L['Default_Language']}</label>
<div class="col-md-4"> <div class="col-md-4">
<select class="form-control" name="lan" id="lan"> <select class="form-control" name="lan" id="lan">
{foreach $lan as $lans} {foreach $lan as $lans}
<option value="{$lans['folder']}" {if $_c['language'] eq $lans['folder']} selected="selected" {/if}>{$lans['name']}</option> <option value="{$lans['folder']}" {if $_c['language'] eq $lans['folder']} selected="selected" {/if}>{$lans['name']}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<a href="{$_url}settings/language" type="button" class="btn btn-line-success btn-icon-inline"><i class="ion ion-android-add"></i>{$_L['Add_Language']}</a> <a href="{$_url}settings/language" type="button" class="btn btn-line-success btn-icon-inline"><i class="ion ion-android-add"></i>{$_L['Add_Language']}</a>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Decimal_Point']}</label> <label class="col-md-2 control-label">{$_L['Decimal_Point']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="dec_point" name="dec_point" value="{$_c['dec_point']}"> <input type="text" class="form-control" id="dec_point" name="dec_point" value="{$_c['dec_point']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Thousands_Separator']}</label> <label class="col-md-2 control-label">{$_L['Thousands_Separator']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="thousands_sep" name="thousands_sep" value="{$_c['thousands_sep']}"> <input type="text" class="form-control" id="thousands_sep" name="thousands_sep" value="{$_c['thousands_sep']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Currency_Code']}</label> <label class="col-md-2 control-label">{$_L['Currency_Code']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="currency_code" name="currency_code" value="{$_c['currency_code']}"> <input type="text" class="form-control" id="currency_code" name="currency_code" value="{$_c['currency_code']}">
<span class="help-block">{$_L['currency_help']}</span> <span class="help-block">{$_L['currency_help']}</span>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button> <button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,4 +1,4 @@
{foreach $d as $ds} {foreach $d as $ds}
<option value="{$ds['pool_name']}">{$ds['pool_name']}</option> <option value="{$ds['pool_name']}">{$ds['pool_name']}</option>
{/foreach} {/foreach}

View File

@ -1,4 +1,4 @@
<option value="">Select Routers</option> <option value="">Select Routers</option>
{foreach $d as $ds} {foreach $d as $ds}
<option value="{$ds['name']}">{$ds['name']}</option> <option value="{$ds['name']}">{$ds['name']}</option>
{/foreach} {/foreach}

View File

@ -1,4 +1,4 @@
<option value="">Select Plans</option> <option value="">Select Plans</option>
{foreach $d as $ds} {foreach $d as $ds}
<option value="{$ds['id']}">{$ds['name_plan']}</option> <option value="{$ds['id']}">{$ds['name_plan']}</option>
{/foreach} {/foreach}

View File

@ -1,54 +1,54 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Add_Bandwidth']}</div> <div class="panel-heading">{$_L['Add_Bandwidth']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}bandwidth/add-post"> <form class="form-horizontal" method="post" role="form" action="{$_url}bandwidth/add-post">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['BW_Name']}</label> <label class="col-md-2 control-label">{$_L['BW_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="name" name="name"> <input type="text" class="form-control" id="name" name="name">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Rate_Download']}</label> <label class="col-md-2 control-label">{$_L['Rate_Download']}</label>
<div class="col-md-4"> <div class="col-md-4">
<input type="text" class="form-control" id="rate_down" name="rate_down"> <input type="text" class="form-control" id="rate_down" name="rate_down">
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<select class="form-control" id="rate_down_unit" name="rate_down_unit"> <select class="form-control" id="rate_down_unit" name="rate_down_unit">
<option value="Kbps">Kbps</option> <option value="Kbps">Kbps</option>
<option value="Mbps">Mbps</option> <option value="Mbps">Mbps</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Rate_Upload']}</label> <label class="col-md-2 control-label">{$_L['Rate_Upload']}</label>
<div class="col-md-4"> <div class="col-md-4">
<input type="text" class="form-control" id="rate_up" name="rate_up"> <input type="text" class="form-control" id="rate_up" name="rate_up">
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<select class="form-control" id="rate_up_unit" name="rate_up_unit"> <select class="form-control" id="rate_up_unit" name="rate_up_unit">
<option value="Kbps">Kbps</option> <option value="Kbps">Kbps</option>
<option value="Mbps">Mbps</option> <option value="Mbps">Mbps</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Submit']}</button> <button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Submit']}</button>
Or <a href="{$_url}bandwidth/list">{$_L['Cancel']}</a> Or <a href="{$_url}bandwidth/list">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,55 +1,55 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Edit_Bandwidth']}</div> <div class="panel-heading">{$_L['Edit_Bandwidth']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}bandwidth/edit-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}bandwidth/edit-post" >
<input type="hidden" name="id" value="{$d['id']}"> <input type="hidden" name="id" value="{$d['id']}">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['BW_Name']}</label> <label class="col-md-2 control-label">{$_L['BW_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="name" name="name" value="{$d['name_bw']}"> <input type="text" class="form-control" id="name" name="name" value="{$d['name_bw']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Rate_Download']}</label> <label class="col-md-2 control-label">{$_L['Rate_Download']}</label>
<div class="col-md-4"> <div class="col-md-4">
<input type="text" class="form-control" id="rate_down" name="rate_down" value="{$d['rate_down']}"> <input type="text" class="form-control" id="rate_down" name="rate_down" value="{$d['rate_down']}">
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<select class="form-control" id="rate_down_unit" name="rate_down_unit"> <select class="form-control" id="rate_down_unit" name="rate_down_unit">
<option value="Kbps" {if $d['rate_down_unit'] eq 'Kbps'}selected="selected" {/if}>Kbps</option> <option value="Kbps" {if $d['rate_down_unit'] eq 'Kbps'}selected="selected" {/if}>Kbps</option>
<option value="Mbps" {if $d['rate_down_unit'] eq 'Mbps'}selected="selected" {/if}>Mbps</option> <option value="Mbps" {if $d['rate_down_unit'] eq 'Mbps'}selected="selected" {/if}>Mbps</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Rate_Upload']}</label> <label class="col-md-2 control-label">{$_L['Rate_Upload']}</label>
<div class="col-md-4"> <div class="col-md-4">
<input type="text" class="form-control" id="rate_up" name="rate_up" value="{$d['rate_up']}"> <input type="text" class="form-control" id="rate_up" name="rate_up" value="{$d['rate_up']}">
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<select class="form-control" id="rate_up_unit" name="rate_up_unit"> <select class="form-control" id="rate_up_unit" name="rate_up_unit">
<option value="Kbps" {if $d['rate_up_unit'] eq 'Kbps'}selected="selected" {/if}>Kbps</option> <option value="Kbps" {if $d['rate_up_unit'] eq 'Kbps'}selected="selected" {/if}>Kbps</option>
<option value="Mbps" {if $d['rate_up_unit'] eq 'Mbps'}selected="selected" {/if}>Mbps</option> <option value="Mbps" {if $d['rate_up_unit'] eq 'Mbps'}selected="selected" {/if}>Mbps</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Submit']}</button> <button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Submit']}</button>
Or <a href="{$_url}bandwidth/list">{$_L['Cancel']}</a> Or <a href="{$_url}bandwidth/list">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,57 +1,57 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="panel panel-hovered mb20 panel-default"> <div class="panel panel-hovered mb20 panel-default">
<div class="panel-heading">{$_L['Bandwidth_Plans']}</div> <div class="panel-heading">{$_L['Bandwidth_Plans']}</div>
<div class="panel-body"> <div class="panel-body">
<div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px"> <div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px">
<div class="col-md-8"> <div class="col-md-8">
<form id="site-search" method="post" action="{$_url}bandwidth/list/"> <form id="site-search" method="post" action="{$_url}bandwidth/list/">
<div class="input-group"> <div class="input-group">
<div class="input-group-addon"> <div class="input-group-addon">
<span class="fa fa-search"></span> <span class="fa fa-search"></span>
</div> </div>
<input type="text" name="name" class="form-control" placeholder="{$_L['Search_by_Name']}..."> <input type="text" name="name" class="form-control" placeholder="{$_L['Search_by_Name']}...">
<div class="input-group-btn"> <div class="input-group-btn">
<button class="btn btn-success">{$_L['Search']}</button> <button class="btn btn-success">{$_L['Search']}</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<a href="{$_url}bandwidth/add" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['New_Bandwidth']}</a> <a href="{$_url}bandwidth/add" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['New_Bandwidth']}</a>
</div>&nbsp; </div>&nbsp;
</div> </div>
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
<thead> <thead>
<tr> <tr>
<th>{$_L['BW_Name']}</th> <th>{$_L['BW_Name']}</th>
<th>{$_L['Rate_Download']}</th> <th>{$_L['Rate_Download']}</th>
<th>{$_L['Rate_Upload']}</th> <th>{$_L['Rate_Upload']}</th>
<th>{$_L['Manage']}</th> <th>{$_L['Manage']}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{foreach $d as $ds} {foreach $d as $ds}
<tr> <tr>
<td>{$ds['name_bw']}</td> <td>{$ds['name_bw']}</td>
<td>{$ds['rate_down']} {$ds['rate_down_unit']}</td> <td>{$ds['rate_down']} {$ds['rate_down_unit']}</td>
<td>{$ds['rate_up']} {$ds['rate_up_unit']}</td> <td>{$ds['rate_up']} {$ds['rate_up_unit']}</td>
<td> <td>
<a href="{$_url}bandwidth/edit/{$ds['id']}" class="btn btn-sm btn-warning">{$_L['Edit']}</a> <a href="{$_url}bandwidth/edit/{$ds['id']}" class="btn btn-sm btn-warning">{$_L['Edit']}</a>
<a href="{$_url}bandwidth/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a> <a href="{$_url}bandwidth/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a>
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
</table> </table>
{$paginator['contents']} {$paginator['contents']}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,41 +1,41 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Change_Password']}</div> <div class="panel-heading">{$_L['Change_Password']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/change-password-post"> <form class="form-horizontal" method="post" role="form" action="{$_url}settings/change-password-post">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Current_Password']}</label> <label class="col-md-2 control-label">{$_L['Current_Password']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="password" class="form-control" id="password" name="password"> <input type="password" class="form-control" id="password" name="password">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['New_Password']}</label> <label class="col-md-2 control-label">{$_L['New_Password']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="password" class="form-control" id="npass" name="npass"> <input type="password" class="form-control" id="npass" name="npass">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Confirm_New_Password']}</label> <label class="col-md-2 control-label">{$_L['Confirm_New_Password']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="password" class="form-control" id="cnpass" name="cnpass"> <input type="password" class="form-control" id="cnpass" name="cnpass">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button> <button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button>
Or <a href="{$_url}dashboard">{$_L['Cancel']}</a> Or <a href="{$_url}dashboard">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,55 +1,55 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Add_Contact']}</div> <div class="panel-heading">{$_L['Add_Contact']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}customers/add-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}customers/add-post" >
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Username']}</label> <label class="col-md-2 control-label">{$_L['Username']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="username" name="username" required placeholder="Phone number"> <input type="text" class="form-control" id="username" name="username" required placeholder="Phone number">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Full_Name']}</label> <label class="col-md-2 control-label">{$_L['Full_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" required class="form-control" id="fullname" name="fullname"> <input type="text" required class="form-control" id="fullname" name="fullname">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Password']}</label> <label class="col-md-2 control-label">{$_L['Password']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="password" class="form-control" required id="password" name="password"> <input type="password" class="form-control" required id="password" name="password">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Confirm_Password']}</label> <label class="col-md-2 control-label">{$_L['Confirm_Password']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="password" class="form-control" required id="cpassword" name="cpassword"> <input type="password" class="form-control" required id="cpassword" name="cpassword">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Address']}</label> <label class="col-md-2 control-label">{$_L['Address']}</label>
<div class="col-md-6"> <div class="col-md-6">
<textarea name="address" id="address" class="form-control"></textarea> <textarea name="address" id="address" class="form-control"></textarea>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button> <button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button>
Or <a href="{$_url}customers/list">{$_L['Cancel']}</a> Or <a href="{$_url}customers/list">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,62 +1,62 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Edit_Contact']}</div> <div class="panel-heading">{$_L['Edit_Contact']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}customers/edit-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}customers/edit-post" >
<input type="hidden" name="id" value="{$d['id']}"> <input type="hidden" name="id" value="{$d['id']}">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Username']}</label> <label class="col-md-2 control-label">{$_L['Username']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="username" name="username" value="{$d['username']}" placeholder="Phone Number" required> <input type="text" class="form-control" id="username" name="username" value="{$d['username']}" placeholder="Phone Number" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Full_Name']}</label> <label class="col-md-2 control-label">{$_L['Full_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="fullname" name="fullname" value="{$d['fullname']}"> <input type="text" class="form-control" id="fullname" name="fullname" value="{$d['fullname']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Password']}</label> <label class="col-md-2 control-label">{$_L['Password']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="password" class="form-control" id="password" name="password"> <input type="password" class="form-control" id="password" name="password">
<span class="help-block">{$_L['password_change_help']}</span> <span class="help-block">{$_L['password_change_help']}</span>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Confirm_Password']}</label> <label class="col-md-2 control-label">{$_L['Confirm_Password']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="password" class="form-control" id="cpassword" name="cpassword"> <input type="password" class="form-control" id="cpassword" name="cpassword">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Address']}</label> <label class="col-md-2 control-label">{$_L['Address']}</label>
<div class="col-md-6"> <div class="col-md-6">
<textarea name="address" id="address" class="form-control">{$d['address']}</textarea> <textarea name="address" id="address" class="form-control">{$d['address']}</textarea>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Phone_Number']}</label> <label class="col-md-2 control-label">{$_L['Phone_Number']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="phonenumber" name="phonenumber" value="{$d['phonenumber']}"> <input type="text" class="form-control" id="phonenumber" name="phonenumber" value="{$d['phonenumber']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button> <button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button>
Or <a href="{$_url}customers/list">{$_L['Cancel']}</a> Or <a href="{$_url}customers/list">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,60 +1,60 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="panel panel-hovered mb20 panel-default"> <div class="panel panel-hovered mb20 panel-default">
<div class="panel-heading">{$_L['Manage_Accounts']}</div> <div class="panel-heading">{$_L['Manage_Accounts']}</div>
<div class="panel-body"> <div class="panel-body">
<div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px"> <div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px">
<div class="col-md-8"> <div class="col-md-8">
<form id="site-search" method="post" action="{$_url}customers/list/"> <form id="site-search" method="post" action="{$_url}customers/list/">
<div class="input-group"> <div class="input-group">
<div class="input-group-addon"> <div class="input-group-addon">
<span class="fa fa-search"></span> <span class="fa fa-search"></span>
</div> </div>
<input type="text" name="username" class="form-control" placeholder="{$_L['Search_by_Username']}..."> <input type="text" name="username" class="form-control" placeholder="{$_L['Search_by_Username']}...">
<div class="input-group-btn"> <div class="input-group-btn">
<button class="btn btn-success">{$_L['Search']}</button> <button class="btn btn-success">{$_L['Search']}</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<a href="{$_url}customers/add" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['Add_Contact']}</a> <a href="{$_url}customers/add" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['Add_Contact']}</a>
</div>&nbsp; </div>&nbsp;
</div> </div>
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped">
<thead> <thead>
<tr> <tr>
<th>{$_L['Username']}</th> <th>{$_L['Username']}</th>
<th>{$_L['Full_Name']}</th> <th>{$_L['Full_Name']}</th>
<th>{$_L['Phone_Number']}</th> <th>{$_L['Phone_Number']}</th>
<th>{$_L['Created_On']}</th> <th>{$_L['Created_On']}</th>
<th>{$_L['Recharge']}</th> <th>{$_L['Recharge']}</th>
<th>{$_L['Manage']}</th> <th>{$_L['Manage']}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{foreach $d as $ds} {foreach $d as $ds}
<tr> <tr>
<td>{$ds['username']}</td> <td>{$ds['username']}</td>
<td>{$ds['fullname']}</td> <td>{$ds['fullname']}</td>
<td>{$ds['phonenumber']}</td> <td>{$ds['phonenumber']}</td>
<td>{$ds['created_at']}</td> <td>{$ds['created_at']}</td>
<td align="center"><a href="{$_url}prepaid/recharge-user/{$ds['id']}" id="{$ds['id']}" class="btn btn-primary btn-sm">{$_L['Recharge']}</a></td> <td align="center"><a href="{$_url}prepaid/recharge-user/{$ds['id']}" id="{$ds['id']}" class="btn btn-primary btn-sm">{$_L['Recharge']}</a></td>
<td align="center"> <td align="center">
<a href="{$_url}customers/edit/{$ds['id']}" class="btn btn-warning btn-sm">{$_L['Edit']}</a> <a href="{$_url}customers/edit/{$ds['id']}" class="btn btn-warning btn-sm">{$_L['Edit']}</a>
<a href="{$_url}customers/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a> <a href="{$_url}customers/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a>
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
</table> </table>
{$paginator['contents']} {$paginator['contents']}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,214 +1,214 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
{if ($_admin['user_type']) eq 'Admin' || ($_admin['user_type']) eq 'Sales'} {if ($_admin['user_type']) eq 'Admin' || ($_admin['user_type']) eq 'Sales'}
<div class="row hidden"> <div class="row hidden">
<div class="col-md-12"> <div class="col-md-12">
<div class="dash-head clearfix mt15 mb20"> <div class="dash-head clearfix mt15 mb20">
<div class="left"> <div class="left">
<h4 class="mb5 text-light">Dashboard</h4> <h4 class="mb5 text-light">Dashboard</h4>
<p class="small"></p> <p class="small"></p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-3 col-sm-6"> <div class="col-md-3 col-sm-6">
<div class="panel panel-default mb20 mini-box panel-hovered"> <div class="panel panel-default mb20 mini-box panel-hovered">
<div class="panel-body"> <div class="panel-body">
<div class="clearfix"> <div class="clearfix">
<div class="info left"> <div class="info left">
<h4 class="mt0 text-primary text-bold">{$_c['currency_code']} {number_format($iday,0,$_c['dec_point'],$_c['thousands_sep'])}</h4> <h4 class="mt0 text-primary text-bold">{$_c['currency_code']} {number_format($iday,0,$_c['dec_point'],$_c['thousands_sep'])}</h4>
<h5 class="text-light mb0">{$_L['Income_Today']}</h5> <h5 class="text-light mb0">{$_L['Income_Today']}</h5>
</div> </div>
<div class="right ion ion-ios-pricetags-outline icon"></div> <div class="right ion ion-ios-pricetags-outline icon"></div>
</div> </div>
</div> </div>
<div class="panel-footer clearfix panel-footer-sm panel-footer-primary"> <div class="panel-footer clearfix panel-footer-sm panel-footer-primary">
<p class="mt0 mb0 right"><a class="text-putih" href="{$_url}reports/by-date">{$_L['View_Reports']}</a></p> <p class="mt0 mb0 right"><a class="text-putih" href="{$_url}reports/by-date">{$_L['View_Reports']}</a></p>
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-3 col-sm-6"> <div class="col-md-3 col-sm-6">
<div class="panel panel-default mb20 mini-box panel-hovered"> <div class="panel panel-default mb20 mini-box panel-hovered">
<div class="panel-body"> <div class="panel-body">
<div class="clearfix"> <div class="clearfix">
<div class="info left"> <div class="info left">
<h4 class="mt0 text-success text-bold">{$_c['currency_code']} {number_format($imonth,0,$_c['dec_point'],$_c['thousands_sep'])}</h4> <h4 class="mt0 text-success text-bold">{$_c['currency_code']} {number_format($imonth,0,$_c['dec_point'],$_c['thousands_sep'])}</h4>
<h5 class="text-light mb0">{$_L['Income_This_Month']}</h5> <h5 class="text-light mb0">{$_L['Income_This_Month']}</h5>
</div> </div>
<div class="right ion ion-social-usd icon"></div> <div class="right ion ion-social-usd icon"></div>
</div> </div>
</div> </div>
<div class="panel-footer clearfix panel-footer-sm panel-footer-success"> <div class="panel-footer clearfix panel-footer-sm panel-footer-success">
<p class="mt0 mb0 right"><a class="text-putih" href="{$_url}reports/by-period">{$_L['View_Reports']}</a></p> <p class="mt0 mb0 right"><a class="text-putih" href="{$_url}reports/by-period">{$_L['View_Reports']}</a></p>
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-3 col-sm-6"> <div class="col-md-3 col-sm-6">
<div class="panel panel-default mb20 mini-box panel-hovered"> <div class="panel panel-default mb20 mini-box panel-hovered">
<div class="panel-body"> <div class="panel-body">
<div class="clearfix"> <div class="clearfix">
<div class="info left"> <div class="info left">
<h4 class="mt0 text-info text-bold">{$u_act}</h4> <h4 class="mt0 text-info text-bold">{$u_act}</h4>
<h5 class="text-light mb0">{$_L['Users_Active']}</h5> <h5 class="text-light mb0">{$_L['Users_Active']}</h5>
</div> </div>
<div class="right ion ion-android-contact icon"></div> <div class="right ion ion-android-contact icon"></div>
</div> </div>
</div> </div>
<div class="panel-footer clearfix panel-footer-sm panel-footer-info"> <div class="panel-footer clearfix panel-footer-sm panel-footer-info">
<p class="mt0 mb0 right"><a class="text-putih" href="{$_url}prepaid/list">{$_L['View_All']}</a></p> <p class="mt0 mb0 right"><a class="text-putih" href="{$_url}prepaid/list">{$_L['View_All']}</a></p>
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-3 col-sm-6"> <div class="col-md-3 col-sm-6">
<div class="panel panel-default mb20 mini-box panel-hovered"> <div class="panel panel-default mb20 mini-box panel-hovered">
<div class="panel-body"> <div class="panel-body">
<div class="clearfix"> <div class="clearfix">
<div class="info left"> <div class="info left">
<h4 class="mt0 text-pink text-bold">{$u_all}</h4> <h4 class="mt0 text-pink text-bold">{$u_all}</h4>
<h5 class="text-light mb0">{$_L['Total_Users']}</h5> <h5 class="text-light mb0">{$_L['Total_Users']}</h5>
</div> </div>
<div class="right ion ion-android-contacts icon"></div> <div class="right ion ion-android-contacts icon"></div>
</div> </div>
</div> </div>
<div class="panel-footer clearfix panel-footer-sm panel-footer-pink"> <div class="panel-footer clearfix panel-footer-sm panel-footer-pink">
<p class="mt0 mb0 right"><a class="text-putih" href="{$_url}customers/list">{$_L['View_All']}</a></p> <p class="mt0 mb0 right"><a class="text-putih" href="{$_url}customers/list">{$_L['View_All']}</a></p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-7"> <div class="col-md-7">
<div class="panel panel-default mb20 panel-hovered project-stats table-responsive"> <div class="panel panel-default mb20 panel-hovered project-stats table-responsive">
<div class="panel-heading">Vouchers Stock</div> <div class="panel-heading">Vouchers Stock</div>
<div class="panel-body"> <div class="panel-body">
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
<th>{$_L['Plan_Name']}</th> <th>{$_L['Plan_Name']}</th>
<th>unused</th> <th>unused</th>
<th>used</th> <th>used</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{foreach $plans as $stok} {foreach $plans as $stok}
<tr> <tr>
<td>{$stok['name_plan']}</td> <td>{$stok['name_plan']}</td>
<td>{$stok['unused']}</td> <td>{$stok['unused']}</td>
<td>{$stok['used']}</td> <td>{$stok['used']}</td>
</tr> </tr>
</tbody> </tbody>
{/foreach} {/foreach}
<tr> <tr>
<td>Total</td> <td>Total</td>
<td>{$stocks['unused']}</td> <td>{$stocks['unused']}</td>
<td>{$stocks['used']}</td> <td>{$stocks['used']}</td>
</tr> </tr>
</table> </table>
</div> </div>
</div> </div>
<div class="panel panel-default mb20 panel-hovered project-stats table-responsive"> <div class="panel panel-default mb20 panel-hovered project-stats table-responsive">
<div class="panel-heading">{$_L['User_Expired_Today']}</div> <div class="panel-heading">{$_L['User_Expired_Today']}</div>
<div class="panel-body"> <div class="panel-body">
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
<th>Id</th> <th>Id</th>
<th>{$_L['Username']}</th> <th>{$_L['Username']}</th>
<th>{$_L['Created_On']}</th> <th>{$_L['Created_On']}</th>
<th>{$_L['Expires_On']}</th> <th>{$_L['Expires_On']}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{$no = 1} {$no = 1}
{foreach $expire as $expired} {foreach $expire as $expired}
<tr> <tr>
<td>{$no++}</td> <td>{$no++}</td>
<td>{$expired['username']}</td> <td>{$expired['username']}</td>
<td>{date($_c['date_format'], strtotime($expired['recharged_on']))} {$expired['time']}</td> <td>{date($_c['date_format'], strtotime($expired['recharged_on']))} {$expired['time']}</td>
<td>{date($_c['date_format'], strtotime($expired['expiration']))} {$expired['time']}</td> <td>{date($_c['date_format'], strtotime($expired['expiration']))} {$expired['time']}</td>
</tr> </tr>
</tbody> </tbody>
{/foreach} {/foreach}
</table> </table>
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-5"> <div class="col-md-5">
<div class="panel panel-default panel-hovered mb20 activities"> <div class="panel panel-default panel-hovered mb20 activities">
<div class="panel-heading">{$_L['Activity_Log']}</div> <div class="panel-heading">{$_L['Activity_Log']}</div>
<div class="panel-body"> <div class="panel-body">
<ul class="list-unstyled"> <ul class="list-unstyled">
{foreach $dlog as $dlogs} {foreach $dlog as $dlogs}
<li class="primary"> <li class="primary">
<span class="point"></span> <span class="point"></span>
<span class="time small text-muted">{time_elapsed_string($dlogs['date'],true)}</span> <span class="time small text-muted">{time_elapsed_string($dlogs['date'],true)}</span>
<p>{$dlogs['description']}</p> <p>{$dlogs['description']}</p>
</li> </li>
{/foreach} {/foreach}
</ul> </ul>
</div> </div>
</div> </div>
<div class="panel panel-default panel-hovered mb20 activities"> <div class="panel panel-default panel-hovered mb20 activities">
<div class="panel-heading">PHPMIXBILL</div> <div class="panel-heading">PHPMIXBILL</div>
<div class="panel-body"> <div class="panel-body">
{$_L['Welcome_Text_Admin']} {$_L['Welcome_Text_Admin']}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{else} {else}
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="dash-head clearfix mt15 mb20"> <div class="dash-head clearfix mt15 mb20">
<div class="left"> <div class="left">
<h4 class="mb5 text-light">{$_L['Welcome']}, {$_user['fullname']}</h4> <h4 class="mb5 text-light">{$_L['Welcome']}, {$_user['fullname']}</h4>
<p>{$_L['Welcome_Text_User']}</p> <p>{$_L['Welcome_Text_User']}</p>
<ul> <ul>
<li> {$_L['Account_Information']}</li> <li> {$_L['Account_Information']}</li>
<li> <a href="{$_url}voucher/activation">{$_L['Voucher_Activation']}</a></li> <li> <a href="{$_url}voucher/activation">{$_L['Voucher_Activation']}</a></li>
<li> <a href="{$_url}voucher/list-activated">{$_L['List_Activated_Voucher']}</a></li> <li> <a href="{$_url}voucher/list-activated">{$_L['List_Activated_Voucher']}</a></li>
<li> <a href="{$_url}accounts/change-password">{$_L['Change_Password']}</a></li> <li> <a href="{$_url}accounts/change-password">{$_L['Change_Password']}</a></li>
<li> {$_L['Order_Voucher']}</li> <li> {$_L['Order_Voucher']}</li>
<li> {$_L['Private_Message']}</li> <li> {$_L['Private_Message']}</li>
</ul> </ul>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="panel mb20 panel-primary panel-hovered"> <div class="panel mb20 panel-primary panel-hovered">
<div class="panel-heading">{$_L['Account_Information']}</div> <div class="panel-heading">{$_L['Account_Information']}</div>
<div class="panel-body"> <div class="panel-body">
<div class="row"> <div class="row">
<div class="col-sm-3"> <div class="col-sm-3">
<p class="small text-success text-uppercase text-normal">{$_L['Username']}</p> <p class="small text-success text-uppercase text-normal">{$_L['Username']}</p>
<p class="small mb15">{$_bill['username']}</p> <p class="small mb15">{$_bill['username']}</p>
</div> </div>
<div class="col-sm-3"> <div class="col-sm-3">
<p class="small text-primary text-uppercase text-normal">{$_L['Plan_Name']}</p> <p class="small text-primary text-uppercase text-normal">{$_L['Plan_Name']}</p>
<p class="small mb15">{$_bill['namebp']}</p> <p class="small mb15">{$_bill['namebp']}</p>
</div> </div>
<div class="col-sm-3"> <div class="col-sm-3">
<p class="small text-info text-uppercase text-normal">{$_L['Created_On']}</p> <p class="small text-info text-uppercase text-normal">{$_L['Created_On']}</p>
<p class="small mb15">{date($_c['date_format'], strtotime($_bill['recharged_on']))} {$_bill['time']}</p> <p class="small mb15">{date($_c['date_format'], strtotime($_bill['recharged_on']))} {$_bill['time']}</p>
</div> </div>
<div class="col-sm-3"> <div class="col-sm-3">
<p class="small text-danger text-uppercase text-normal">{$_L['Expires_On']}</p> <p class="small text-danger text-uppercase text-normal">{$_L['Expires_On']}</p>
<p class="small mb15">{date($_c['date_format'], strtotime($_bill['expiration']))} {$_bill['time']}</p> <p class="small mb15">{date($_c['date_format'], strtotime($_bill['expiration']))} {$_bill['time']}</p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{/if} {/if}
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,43 +1,43 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="panel mb20 panel-default"> <div class="panel mb20 panel-default">
<div class="panel-heading">{$_L['Database_Status']}</div> <div class="panel-heading">{$_L['Database_Status']}</div>
<div class="panel-body"> <div class="panel-body">
<div class="row"> <div class="row">
<div class="col-md-12 col-sm-12 col-xs-12"> <div class="col-md-12 col-sm-12 col-xs-12">
<div class="col-md-9">{$_L['Total_Database_Size']}: {$dbsize} MB </div> <div class="col-md-9">{$_L['Total_Database_Size']}: {$dbsize} MB </div>
<div class="col-md-3 text-right"> <div class="col-md-3 text-right">
<a href="{$_url}settings/dbbackup/" class="btn btn-primary btn-xs"><i class="fa fa-download"></i> {$_L['Download_Database_Backup']}</a> <a href="{$_url}settings/dbbackup/" class="btn btn-primary btn-xs"><i class="fa fa-download"></i> {$_L['Download_Database_Backup']}</a>
</div>&nbsp; </div>&nbsp;
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>
<tr> <tr>
<th width="50%">{$_L['Table_Name']}</th> <th width="50%">{$_L['Table_Name']}</th>
<th>{$_L['Rows']}</th> <th>{$_L['Rows']}</th>
<th>{$_L['Size']}</th> <th>{$_L['Size']}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{foreach $tables as $tbl} {foreach $tables as $tbl}
<tr> <tr>
<td>{$tbl['name']}</td> <td>{$tbl['name']}</td>
<td>{$tbl['rows']}</td> <td>{$tbl['rows']}</td>
<td>{$tbl['size']} Kb</td> <td>{$tbl['size']} Kb</td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

Before

Width:  |  Height:  |  Size: 306 KiB

After

Width:  |  Height:  |  Size: 306 KiB

View File

Before

Width:  |  Height:  |  Size: 326 KiB

After

Width:  |  Height:  |  Size: 326 KiB

View File

@ -1,122 +1,122 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Add_Plan']}</div> <div class="panel-heading">{$_L['Add_Plan']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}services/add-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}services/add-post" >
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Name']}</label> <label class="col-md-2 control-label">{$_L['Plan_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="name" name="name"> <input type="text" class="form-control" id="name" name="name">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Type']}</label> <label class="col-md-2 control-label">{$_L['Plan_Type']}</label>
<div class="col-md-10"> <div class="col-md-10">
<input type="radio" id="Unlimited" name="typebp" value="Unlimited" checked> {$_L['Unlimited']} <input type="radio" id="Unlimited" name="typebp" value="Unlimited" checked> {$_L['Unlimited']}
<input type="radio" id="Limited" name="typebp" value="Limited"> {$_L['Limited']} <input type="radio" id="Limited" name="typebp" value="Limited"> {$_L['Limited']}
</div> </div>
</div> </div>
<div style="display:none;" id="Type"> <div style="display:none;" id="Type">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Limit_Type']}</label> <label class="col-md-2 control-label">{$_L['Limit_Type']}</label>
<div class="col-md-10"> <div class="col-md-10">
<input type="radio" id="Time_Limit" name="limit_type" value="Time_Limit" checked> {$_L['Time_Limit']} <input type="radio" id="Time_Limit" name="limit_type" value="Time_Limit" checked> {$_L['Time_Limit']}
<input type="radio" id="Data_Limit" name="limit_type" value="Data_Limit"> {$_L['Data_Limit']} <input type="radio" id="Data_Limit" name="limit_type" value="Data_Limit"> {$_L['Data_Limit']}
<input type="radio" id="Both_Limit" name="limit_type" value="Both_Limit"> {$_L['Both_Limit']} <input type="radio" id="Both_Limit" name="limit_type" value="Both_Limit"> {$_L['Both_Limit']}
</div> </div>
</div> </div>
</div> </div>
<div style="display:none;" id="TimeLimit"> <div style="display:none;" id="TimeLimit">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Time_Limit']}</label> <label class="col-md-2 control-label">{$_L['Time_Limit']}</label>
<div class="col-md-4"> <div class="col-md-4">
<input type="text" class="form-control" id="time_limit" name="time_limit" value="0"> <input type="text" class="form-control" id="time_limit" name="time_limit" value="0">
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<select class="form-control" id="time_unit" name="time_unit"> <select class="form-control" id="time_unit" name="time_unit">
<option value="Hrs">{$_L['Hrs']}</option> <option value="Hrs">{$_L['Hrs']}</option>
<option value="Mins">{$_L['Mins']}</option> <option value="Mins">{$_L['Mins']}</option>
</select> </select>
</div> </div>
</div> </div>
</div> </div>
<div style="display:none;" id="DataLimit"> <div style="display:none;" id="DataLimit">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Data_Limit']}</label> <label class="col-md-2 control-label">{$_L['Data_Limit']}</label>
<div class="col-md-4"> <div class="col-md-4">
<input type="text" class="form-control" id="data_limit" name="data_limit" value="0"> <input type="text" class="form-control" id="data_limit" name="data_limit" value="0">
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<select class="form-control" id="data_unit" name="data_unit"> <select class="form-control" id="data_unit" name="data_unit">
<option value="MB">MBs</option> <option value="MB">MBs</option>
<option value="GB">GBs</option> <option value="GB">GBs</option>
</select> </select>
</div> </div>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['BW_Name']}</label> <label class="col-md-2 control-label">{$_L['BW_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="id_bw" name="id_bw" class="form-control"> <select id="id_bw" name="id_bw" class="form-control">
<option value="">{$_L['Select_BW']}...</option> <option value="">{$_L['Select_BW']}...</option>
{foreach $d as $ds} {foreach $d as $ds}
<option value="{$ds['id']}">{$ds['name_bw']}</option> <option value="{$ds['id']}">{$ds['name_bw']}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Price']}</label> <label class="col-md-2 control-label">{$_L['Plan_Price']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="pricebp" name="pricebp"> <input type="text" class="form-control" id="pricebp" name="pricebp">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Shared_Users']}</label> <label class="col-md-2 control-label">{$_L['Shared_Users']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="sharedusers" name="sharedusers" value="1"> <input type="text" class="form-control" id="sharedusers" name="sharedusers" value="1">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Validity']}</label> <label class="col-md-2 control-label">{$_L['Plan_Validity']}</label>
<div class="col-md-4"> <div class="col-md-4">
<input type="text" class="form-control" id="validity" name="validity"> <input type="text" class="form-control" id="validity" name="validity">
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<select class="form-control" id="validity_unit" name="validity_unit"> <select class="form-control" id="validity_unit" name="validity_unit">
<option value="Mins" {if $d['validity_unit'] eq 'Mins'} selected {/if}>{$_L['Mins']}</option> <option value="Mins" {if $d['validity_unit'] eq 'Mins'} selected {/if}>{$_L['Mins']}</option>
<option value="Hrs" {if $d['validity_unit'] eq 'Hrs'} selected {/if}>{$_L['Hrs']}</option> <option value="Hrs" {if $d['validity_unit'] eq 'Hrs'} selected {/if}>{$_L['Hrs']}</option>
<option value="Days" {if $d['validity_unit'] eq 'Days'} selected {/if}>{$_L['Days']}</option> <option value="Days" {if $d['validity_unit'] eq 'Days'} selected {/if}>{$_L['Days']}</option>
<option value="Months" {if $d['validity_unit'] eq 'Months'} selected {/if}>{$_L['Months']}</option> <option value="Months" {if $d['validity_unit'] eq 'Months'} selected {/if}>{$_L['Months']}</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Router_Name']}</label> <label class="col-md-2 control-label">{$_L['Router_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="routers" name="routers" class="form-control"> <select id="routers" name="routers" class="form-control">
{foreach $r as $rs} {foreach $r as $rs}
<option value="{$rs['name']}">{$rs['name']}</option> <option value="{$rs['name']}">{$rs['name']}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button> <button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button>
Or <a href="{$_url}services/hotspot">{$_L['Cancel']}</a> Or <a href="{$_url}services/hotspot">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,118 +1,118 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Edit_Plan']}</div> <div class="panel-heading">{$_L['Edit_Plan']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}services/edit-post"> <form class="form-horizontal" method="post" role="form" action="{$_url}services/edit-post">
<input type="hidden" name="id" value="{$d['id']}"> <input type="hidden" name="id" value="{$d['id']}">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Name']}</label> <label class="col-md-2 control-label">{$_L['Plan_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="name" name="name" value="{$d['name_plan']}" readonly> <input type="text" class="form-control" id="name" name="name" value="{$d['name_plan']}" readonly>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Type']}</label> <label class="col-md-2 control-label">{$_L['Plan_Type']}</label>
<div class="col-md-10"> <div class="col-md-10">
<input type="radio" id="Unlimited" name="typebp" value="Unlimited" {if $d['typebp'] eq 'Unlimited'} checked {/if}> {$_L['Unlimited']} <input type="radio" id="Unlimited" name="typebp" value="Unlimited" {if $d['typebp'] eq 'Unlimited'} checked {/if}> {$_L['Unlimited']}
<input type="radio" id="Limited" name="typebp" value="Limited" {if $d['typebp'] eq 'Limited'} checked {/if}> {$_L['Limited']} <input type="radio" id="Limited" name="typebp" value="Limited" {if $d['typebp'] eq 'Limited'} checked {/if}> {$_L['Limited']}
</div> </div>
</div> </div>
<div {if $d['typebp'] eq 'Unlimited'} style="display:none;" {/if} id="Type"> <div {if $d['typebp'] eq 'Unlimited'} style="display:none;" {/if} id="Type">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Limit_Type']}</label> <label class="col-md-2 control-label">{$_L['Limit_Type']}</label>
<div class="col-md-10"> <div class="col-md-10">
<input type="radio" id="Time_Limit" name="limit_type" value="Time_Limit" {if $d['limit_type'] eq 'Time_Limit'} checked {/if}> {$_L['Time_Limit']} <input type="radio" id="Time_Limit" name="limit_type" value="Time_Limit" {if $d['limit_type'] eq 'Time_Limit'} checked {/if}> {$_L['Time_Limit']}
<input type="radio" id="Data_Limit" name="limit_type" value="Data_Limit" {if $d['limit_type'] eq 'Data_Limit'} checked {/if}> {$_L['Data_Limit']} <input type="radio" id="Data_Limit" name="limit_type" value="Data_Limit" {if $d['limit_type'] eq 'Data_Limit'} checked {/if}> {$_L['Data_Limit']}
<input type="radio" id="Both_Limit" name="limit_type" value="Both_Limit" {if $d['limit_type'] eq 'Both_Limit'} checked {/if}> {$_L['Both_Limit']} <input type="radio" id="Both_Limit" name="limit_type" value="Both_Limit" {if $d['limit_type'] eq 'Both_Limit'} checked {/if}> {$_L['Both_Limit']}
</div> </div>
</div> </div>
</div> </div>
<div {if $d['typebp'] eq 'Unlimited'} style="display:none;" {elseif ($d['time_limit']) eq '0'} style="display:none;" {/if} id="TimeLimit"> <div {if $d['typebp'] eq 'Unlimited'} style="display:none;" {elseif ($d['time_limit']) eq '0'} style="display:none;" {/if} id="TimeLimit">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Time_Limit']}</label> <label class="col-md-2 control-label">{$_L['Time_Limit']}</label>
<div class="col-md-4"> <div class="col-md-4">
<input type="text" class="form-control" id="time_limit" name="time_limit" value="{$d['time_limit']}"> <input type="text" class="form-control" id="time_limit" name="time_limit" value="{$d['time_limit']}">
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<select class="form-control" id="time_unit" name="time_unit" > <select class="form-control" id="time_unit" name="time_unit" >
<option value="Hrs" {if $d['time_unit'] eq 'Hrs'} selected {/if}>{$_L['Hrs']}</option> <option value="Hrs" {if $d['time_unit'] eq 'Hrs'} selected {/if}>{$_L['Hrs']}</option>
<option value="Mins" {if $d['time_unit'] eq 'Mins'} selected {/if}>{$_L['Mins']}</option> <option value="Mins" {if $d['time_unit'] eq 'Mins'} selected {/if}>{$_L['Mins']}</option>
</select> </select>
</div> </div>
</div> </div>
</div> </div>
<div {if $d['typebp'] eq 'Unlimited'} style="display:none;" {elseif ($d['data_limit']) eq '0'} style="display:none;" {/if} id="DataLimit"> <div {if $d['typebp'] eq 'Unlimited'} style="display:none;" {elseif ($d['data_limit']) eq '0'} style="display:none;" {/if} id="DataLimit">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Data_Limit']}</label> <label class="col-md-2 control-label">{$_L['Data_Limit']}</label>
<div class="col-md-4"> <div class="col-md-4">
<input type="text" class="form-control" id="data_limit" name="data_limit" value="{$d['data_limit']}"> <input type="text" class="form-control" id="data_limit" name="data_limit" value="{$d['data_limit']}">
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<select class="form-control" id="data_unit" name="data_unit"> <select class="form-control" id="data_unit" name="data_unit">
<option value="MB" {if $d['data_unit'] eq 'MB'} selected {/if}>MBs</option> <option value="MB" {if $d['data_unit'] eq 'MB'} selected {/if}>MBs</option>
<option value="GB" {if $d['data_unit'] eq 'GB'} selected {/if}>GBs</option> <option value="GB" {if $d['data_unit'] eq 'GB'} selected {/if}>GBs</option>
</select> </select>
</div> </div>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['BW_Name']}</label> <label class="col-md-2 control-label">{$_L['BW_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="id_bw" name="id_bw" class="form-control"> <select id="id_bw" name="id_bw" class="form-control">
{foreach $b as $bs} {foreach $b as $bs}
<option value="{$bs['id']}" {if $d['id_bw'] eq $bs['id']} selected {/if}>{$bs['name_bw']}</option> <option value="{$bs['id']}" {if $d['id_bw'] eq $bs['id']} selected {/if}>{$bs['name_bw']}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Price']}</label> <label class="col-md-2 control-label">{$_L['Plan_Price']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="price" name="price" value="{$d['price']}"> <input type="text" class="form-control" id="price" name="price" value="{$d['price']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Shared_Users']}</label> <label class="col-md-2 control-label">{$_L['Shared_Users']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="sharedusers" name="sharedusers" value="{$d['shared_users']}"> <input type="text" class="form-control" id="sharedusers" name="sharedusers" value="{$d['shared_users']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Validity']}</label> <label class="col-md-2 control-label">{$_L['Plan_Validity']}</label>
<div class="col-md-4"> <div class="col-md-4">
<input type="text" class="form-control" id="validity" name="validity" value="{$d['validity']}"> <input type="text" class="form-control" id="validity" name="validity" value="{$d['validity']}">
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<select class="form-control" id="validity_unit" name="validity_unit"> <select class="form-control" id="validity_unit" name="validity_unit">
<option value="Mins" {if $d['validity_unit'] eq 'Mins'} selected {/if}>{$_L['Mins']}</option> <option value="Mins" {if $d['validity_unit'] eq 'Mins'} selected {/if}>{$_L['Mins']}</option>
<option value="Hrs" {if $d['validity_unit'] eq 'Hrs'} selected {/if}>{$_L['Hrs']}</option> <option value="Hrs" {if $d['validity_unit'] eq 'Hrs'} selected {/if}>{$_L['Hrs']}</option>
<option value="Days" {if $d['validity_unit'] eq 'Days'} selected {/if}>{$_L['Days']}</option> <option value="Days" {if $d['validity_unit'] eq 'Days'} selected {/if}>{$_L['Days']}</option>
<option value="Months" {if $d['validity_unit'] eq 'Months'} selected {/if}>{$_L['Months']}</option> <option value="Months" {if $d['validity_unit'] eq 'Months'} selected {/if}>{$_L['Months']}</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Router_Name']}</label> <label class="col-md-2 control-label">{$_L['Router_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="routers" name="routers" value="{$d['routers']}" readonly> <input type="text" class="form-control" id="routers" name="routers" value="{$d['routers']}" readonly>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button> <button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button>
Or <a href="{$_url}services/hotspot">{$_L['Cancel']}</a> Or <a href="{$_url}services/hotspot">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,67 +1,67 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="panel panel-hovered mb20 panel-default"> <div class="panel panel-hovered mb20 panel-default">
<div class="panel-heading">{$_L['Hotspot_Plans']}</div> <div class="panel-heading">{$_L['Hotspot_Plans']}</div>
<div class="panel-body"> <div class="panel-body">
<div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px"> <div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px">
<div class="col-md-8"> <div class="col-md-8">
<form id="site-search" method="post" action="{$_url}services/hotspot/"> <form id="site-search" method="post" action="{$_url}services/hotspot/">
<div class="input-group"> <div class="input-group">
<div class="input-group-addon"> <div class="input-group-addon">
<span class="fa fa-search"></span> <span class="fa fa-search"></span>
</div> </div>
<input type="text" name="name" class="form-control" placeholder="{$_L['Search_by_Name']}..."> <input type="text" name="name" class="form-control" placeholder="{$_L['Search_by_Name']}...">
<div class="input-group-btn"> <div class="input-group-btn">
<button class="btn btn-success">{$_L['Search']}</button> <button class="btn btn-success">{$_L['Search']}</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<a href="{$_url}services/add" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['New_Plan']}</a> <a href="{$_url}services/add" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['New_Plan']}</a>
</div>&nbsp; </div>&nbsp;
</div> </div>
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
<thead> <thead>
<tr> <tr>
<th>{$_L['Plan_Name']}</th> <th>{$_L['Plan_Name']}</th>
<th>{$_L['Plan_Type']}</th> <th>{$_L['Plan_Type']}</th>
<th>{$_L['Bandwidth_Plans']}</th> <th>{$_L['Bandwidth_Plans']}</th>
<th>{$_L['Plan_Price']}</th> <th>{$_L['Plan_Price']}</th>
<th>{$_L['Time_Limit']}</th> <th>{$_L['Time_Limit']}</th>
<th>{$_L['Data_Limit']}</th> <th>{$_L['Data_Limit']}</th>
<th>{$_L['Plan_Validity']}</th> <th>{$_L['Plan_Validity']}</th>
<th>{$_L['Routers']}</th> <th>{$_L['Routers']}</th>
<th>{$_L['Manage']}</th> <th>{$_L['Manage']}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{foreach $d as $ds} {foreach $d as $ds}
<tr> <tr>
<td>{$ds['name_plan']}</td> <td>{$ds['name_plan']}</td>
<td>{$ds['typebp']}</td> <td>{$ds['typebp']}</td>
<td>{$ds['name_bw']}</td> <td>{$ds['name_bw']}</td>
<td>{$ds['price']}</td> <td>{$ds['price']}</td>
<td>{$ds['time_limit']} {$ds['time_unit']}</td> <td>{$ds['time_limit']} {$ds['time_unit']}</td>
<td>{$ds['data_limit']} {$ds['data_unit']}</td> <td>{$ds['data_limit']} {$ds['data_unit']}</td>
<td>{$ds['validity']} {$ds['validity_unit']}</td> <td>{$ds['validity']} {$ds['validity_unit']}</td>
<td>{$ds['routers']}</td> <td>{$ds['routers']}</td>
<td> <td>
<a href="{$_url}services/edit/{$ds['id']}" class="btn btn-warning btn-sm">{$_L['Edit']}</a> <a href="{$_url}services/edit/{$ds['id']}" class="btn btn-warning btn-sm">{$_L['Edit']}</a>
<a href="{$_url}services/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a> <a href="{$_url}services/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a>
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
</table> </table>
{$paginator['contents']} {$paginator['contents']}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

@ -1,58 +1,58 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>{$_title}</title> <title>{$_title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="{$_theme}/styles/bootstrap.min.css" rel="stylesheet"> <link href="{$_theme}/styles/bootstrap.min.css" rel="stylesheet">
<link rel="shortcut icon" type="image/x-icon" href="{$_theme}/images/favicon.ico"> <link rel="shortcut icon" type="image/x-icon" href="{$_theme}/images/favicon.ico">
<script type="text/javascript"> <script type="text/javascript">
function printpage() { function printpage() {
window.print(); window.print();
} }
</script> </script>
</head> </head>
<body topmargin="0" leftmargin="0" onload="printpage()"> <body topmargin="0" leftmargin="0" onload="printpage()">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<table width="200"> <table width="200">
<tr> <tr>
<td> <td>
<fieldset> <fieldset>
<center> <center>
<b>{$_c['CompanyName']}</b><br> <b>{$_c['CompanyName']}</b><br>
{$_c['address']}<br> {$_c['address']}<br>
{$_c['phone']}<br> {$_c['phone']}<br>
</center> </center>
============================================<br> ============================================<br>
INVOICE: <b>{$d['invoice']}</b> - {$_L['Date']} : {$date}<br> INVOICE: <b>{$d['invoice']}</b> - {$_L['Date']} : {$date}<br>
{$_L['Sales']} : {$_admin['fullname']}<br> {$_L['Sales']} : {$_admin['fullname']}<br>
============================================<br> ============================================<br>
{$_L['Type']} : <b>{$d['type']}</b><br> {$_L['Type']} : <b>{$d['type']}</b><br>
{$_L['Plan_Name']} : <b>{$d['plan_name']}</b><br> {$_L['Plan_Name']} : <b>{$d['plan_name']}</b><br>
{$_L['Plan_Price']} : <b>{$_c['currency_code']} {number_format($d['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</b><br> {$_L['Plan_Price']} : <b>{$_c['currency_code']} {number_format($d['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</b><br>
<br> <br>
{$_L['Username']} : <b>{$d['username']}</b><br> {$_L['Username']} : <b>{$d['username']}</b><br>
{$_L['Password']} : **********<br> {$_L['Password']} : **********<br>
<br> <br>
{$_L['Created_On']} : <b>{date($_c['date_format'], strtotime($d['recharged_on']))} {$d['time']}</b><br> {$_L['Created_On']} : <b>{date($_c['date_format'], strtotime($d['recharged_on']))} {$d['time']}</b><br>
{$_L['Expires_On']} : <b>{date($_c['date_format'], strtotime($d['expiration']))} {$d['time']}</b><br> {$_L['Expires_On']} : <b>{date($_c['date_format'], strtotime($d['expiration']))} {$d['time']}</b><br>
============================================<br> ============================================<br>
<center>{$_c['note']}</center> <center>{$_c['note']}</center>
</fieldset> </fieldset>
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</div> </div>
<script src="{$_theme}/scripts/jquery-1.10.2.js"></script> <script src="{$_theme}/scripts/jquery-1.10.2.js"></script>
<script src="{$_theme}/scripts/bootstrap.min.js"></script> <script src="{$_theme}/scripts/bootstrap.min.js"></script>
{if isset($xfooter)} {if isset($xfooter)}
{$xfooter} {$xfooter}
{/if} {/if}
</body> </body>
</html> </html>

View File

@ -1,48 +1,48 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-md-6 col-sm-12"> <div class="col-md-6 col-sm-12">
<div class="panel panel-hovered panel-default panel-stacked mb30"> <div class="panel panel-hovered panel-default panel-stacked mb30">
<div class="panel-heading">PRINT INVOICE</div> <div class="panel-heading">PRINT INVOICE</div>
<div class="panel-body"> <div class="panel-body">
<div class="well"> <div class="well">
<fieldset> <fieldset>
<center> <center>
<b>{$_c['CompanyName']}</b><br> <b>{$_c['CompanyName']}</b><br>
{$_c['address']}<br> {$_c['address']}<br>
{$_c['phone']}<br> {$_c['phone']}<br>
</center> </center>
====================================================<br> ====================================================<br>
INVOICE: <b>{$in['invoice']}</b> - {$_L['Date']} : {$date}<br> INVOICE: <b>{$in['invoice']}</b> - {$_L['Date']} : {$date}<br>
{$_L['Sales']} : {$_admin['fullname']}<br> {$_L['Sales']} : {$_admin['fullname']}<br>
====================================================<br> ====================================================<br>
{$_L['Type']} : <b>{$in['type']}</b><br> {$_L['Type']} : <b>{$in['type']}</b><br>
{$_L['Plan_Name']} : <b>{$in['plan_name']}</b><br> {$_L['Plan_Name']} : <b>{$in['plan_name']}</b><br>
{$_L['Plan_Price']} : <b>{$_c['currency_code']} {number_format($in['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</b><br> {$_L['Plan_Price']} : <b>{$_c['currency_code']} {number_format($in['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</b><br>
<br> <br>
{$_L['Username']} : <b>{$in['username']}</b><br> {$_L['Username']} : <b>{$in['username']}</b><br>
{$_L['Password']} : **********<br> {$_L['Password']} : **********<br>
<br> <br>
{$_L['Created_On']} : <b>{date($_c['date_format'], strtotime($in['recharged_on']))} {$in['time']}</b><br> {$_L['Created_On']} : <b>{date($_c['date_format'], strtotime($in['recharged_on']))} {$in['time']}</b><br>
{$_L['Expires_On']} : <b>{date($_c['date_format'], strtotime($in['expiration']))} {$in['time']}</b><br> {$_L['Expires_On']} : <b>{date($_c['date_format'], strtotime($in['expiration']))} {$in['time']}</b><br>
=====================================================<br> =====================================================<br>
<center>{$_c['note']}</center> <center>{$_c['note']}</center>
</fieldset> </fieldset>
</div> </div>
<form class="form-horizontal" method="post" action="{$_url}prepaid/print" target="_blank"> <form class="form-horizontal" method="post" action="{$_url}prepaid/print" target="_blank">
<input type="hidden" name="id" value="{$in['id']}"> <input type="hidden" name="id" value="{$in['id']}">
<button type="submit" class="btn btn-default btn-sm"><i class="fa fa-print"></i> {$_L['Click_Here_to_Print']}</button> <button type="submit" class="btn btn-default btn-sm"><i class="fa fa-print"></i> {$_L['Click_Here_to_Print']}</button>
<a href="{$_url}prepaid/list" class="btn btn-primary"><i class="ion-reply-all"></i>{$_L['Finish']}</a> <a href="{$_url}prepaid/list" class="btn btn-primary"><i class="ion-reply-all"></i>{$_L['Finish']}</a>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
var s5_taf_parent = window.location; var s5_taf_parent = window.location;
function popup_print() { function popup_print() {
window.open('print.php?page=<?php echo $_GET['act'];?>','page','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=800,height=600,left=50,top=50,titlebar=yes') window.open('print.php?page=<?php echo $_GET['act'];?>','page','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=800,height=600,left=50,top=50,titlebar=yes')
} }
</script> </script>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,39 +1,39 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Add_Plan']}</div> <div class="panel-heading">{$_L['Add_Plan']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/lang-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}settings/lang-post" >
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Name_Lang']}</label> <label class="col-md-2 control-label">{$_L['Name_Lang']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="name" name="name"> <input type="text" class="form-control" id="name" name="name">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Folder_Lang']}</label> <label class="col-md-2 control-label">{$_L['Folder_Lang']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="folder" name="folder"> <input type="text" class="form-control" id="folder" name="folder">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Translator']}</label> <label class="col-md-2 control-label">{$_L['Translator']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="translator" name="translator"> <input type="text" class="form-control" id="translator" name="translator">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button> <button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button>
Or <a href="{$_url}settings/localisation">{$_L['Cancel']}</a> Or <a href="{$_url}settings/localisation">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,82 +1,82 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>{$_title} - {$_L['Login']}</title> <title>{$_title} - {$_L['Login']}</title>
<link rel="shortcut icon" href="{$_theme}/images/logo.png" type="image/x-icon" /> <link rel="shortcut icon" href="{$_theme}/images/logo.png" type="image/x-icon" />
<!-- Css/Less Stylesheets --> <!-- Css/Less Stylesheets -->
<link rel="stylesheet" href="{$_theme}/styles/bootstrap.min.css"> <link rel="stylesheet" href="{$_theme}/styles/bootstrap.min.css">
<link rel="stylesheet" href="{$_theme}/styles/main.min.css"> <link rel="stylesheet" href="{$_theme}/styles/main.min.css">
<!-- <link href='http://fonts.googleapis.com/css?family=Roboto:400,500,700,300' rel='stylesheet' type='text/css'> --> <!-- <link href='http://fonts.googleapis.com/css?family=Roboto:400,500,700,300' rel='stylesheet' type='text/css'> -->
<!-- Match Media polyfill for IE9 --> <!-- Match Media polyfill for IE9 -->
<!--[if IE 9]> <script src="{$_theme}/scripts/ie/matchMedia.js"></script> <![endif]--> <!--[if IE 9]> <script src="{$_theme}/scripts/ie/matchMedia.js"></script> <![endif]-->
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<div class="hidden-xs" style="height:150px"></div> <div class="hidden-xs" style="height:150px"></div>
<div class="form-head mb20"> <div class="form-head mb20">
<h1 class="site-logo h2 mb5 mt5 text-center text-uppercase text-bold" style="text-shadow: 2px 2px 4px #757575;">{$_c['CompanyName']}</h1> <h1 class="site-logo h2 mb5 mt5 text-center text-uppercase text-bold" style="text-shadow: 2px 2px 4px #757575;">{$_c['CompanyName']}</h1>
<hr> <hr>
</div> </div>
{if isset($notify)} {if isset($notify)}
<div class="row"> <div class="row">
<div class="col-md-6 col-md-offset-3"> <div class="col-md-6 col-md-offset-3">
{$notify} {$notify}
</div> </div>
</div> </div>
{/if} {/if}
<div class="row"> <div class="row">
<div class="col-md-4 col-md-offset-2"> <div class="col-md-4 col-md-offset-2">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading">{$_L['Announcement']}</div> <div class="panel-heading">{$_L['Announcement']}</div>
<div class="panel-body" style="height:296px;max-height:296px;overflow:scroll;"> <div class="panel-body" style="height:296px;max-height:296px;overflow:scroll;">
{include file="$_path/../pages/Announcement.html"} {include file="$_path/../pages/Announcement.html"}
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading">{$_L['Sign_In_Member']}</div> <div class="panel-heading">{$_L['Sign_In_Member']}</div>
<div class="panel-body" style="height:296px;max-height:296px;"> <div class="panel-body" style="height:296px;max-height:296px;">
<div class="form-container"> <div class="form-container">
<form class="form-horizontal" action="{$_url}login/post" method="post"> <form class="form-horizontal" action="{$_url}login/post" method="post">
<div class="md-input-container md-float-label"> <div class="md-input-container md-float-label">
<input type="text" name="username" placeholder="{$_L['Phone_Number']}" class="md-input"> <input type="text" name="username" placeholder="{$_L['Phone_Number']}" class="md-input">
<label>{$_L['Username']}</label> <label>{$_L['Username']}</label>
</div> </div>
<div class="md-input-container md-float-label"> <div class="md-input-container md-float-label">
<input type="password" name="password" placeholder="{$_L['Password']}" class="md-input"> <input type="password" name="password" placeholder="{$_L['Password']}" class="md-input">
<label>{$_L['Password']}</label> <label>{$_L['Password']}</label>
</div> </div>
<div class="clearfix hidden"> <div class="clearfix hidden">
<div class="ui-checkbox ui-checkbox-primary right"> <div class="ui-checkbox ui-checkbox-primary right">
<label> <label>
<input type="checkbox"> <input type="checkbox">
<span>Remember me</span> <span>Remember me</span>
</label> </label>
</div> </div>
</div> </div>
<div class="btn-group btn-group-justified mb15"> <div class="btn-group btn-group-justified mb15">
<div class="btn-group"> <div class="btn-group">
<button type="submit" class="btn btn-primary">{$_L['Login']}</button> <button type="submit" class="btn btn-primary">{$_L['Login']}</button>
</div> </div>
<div class="btn-group"> <div class="btn-group">
<a href="{$_url}register" class="btn btn-success">{$_L['Register']}</a> <a href="{$_url}register" class="btn btn-success">{$_L['Register']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<script src="scripts/vendors.js"></script> <script src="scripts/vendors.js"></script>
</body> </body>
</html> </html>

View File

@ -1,45 +1,45 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Add_Pool']}</div> <div class="panel-heading">{$_L['Add_Pool']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}pool/add-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}pool/add-post" >
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Pool_Name']}</label> <label class="col-md-2 control-label">{$_L['Pool_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="name" name="name"> <input type="text" class="form-control" id="name" name="name">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Range_IP']}</label> <label class="col-md-2 control-label">{$_L['Range_IP']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="ip_address" name="ip_address" placeholder="ex: 192.168.88.2-192.168.88.254"> <input type="text" class="form-control" id="ip_address" name="ip_address" placeholder="ex: 192.168.88.2-192.168.88.254">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Routers']}</label> <label class="col-md-2 control-label">{$_L['Routers']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="routers" name="routers" class="form-control"> <select id="routers" name="routers" class="form-control">
{foreach $r as $rs} {foreach $r as $rs}
<option value="{$rs['name']}">{$rs['name']}</option> <option value="{$rs['name']}">{$rs['name']}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button> <button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button>
Or <a href="{$_url}pool/list">{$_L['Cancel']}</a> Or <a href="{$_url}pool/list">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,44 +1,44 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Edit_Pool']}</div> <div class="panel-heading">{$_L['Edit_Pool']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}pool/edit-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}pool/edit-post" >
<input type="hidden" name="id" value="{$d['id']}"> <input type="hidden" name="id" value="{$d['id']}">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Pool_Name']}</label> <label class="col-md-2 control-label">{$_L['Pool_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="name" name="name" value="{$d['pool_name']}" readonly> <input type="text" class="form-control" id="name" name="name" value="{$d['pool_name']}" readonly>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Range_IP']}</label> <label class="col-md-2 control-label">{$_L['Range_IP']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="ip_address" name="ip_address" value="{$d['range_ip']}"> <input type="text" class="form-control" id="ip_address" name="ip_address" value="{$d['range_ip']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Routers']}</label> <label class="col-md-2 control-label">{$_L['Routers']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="routers" name="routers" value="{$d['routers']}" readonly> <input type="text" class="form-control" id="routers" name="routers" value="{$d['routers']}" readonly>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button> <button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button>
Or <a href="{$_url}pool/list">{$_L['Cancel']}</a> Or <a href="{$_url}pool/list">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,59 +1,59 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="panel panel-hovered mb20 panel-default"> <div class="panel panel-hovered mb20 panel-default">
<div class="panel-heading">{$_L['Pool']}</div> <div class="panel-heading">{$_L['Pool']}</div>
<div class="panel-body"> <div class="panel-body">
<div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px"> <div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px">
<div class="col-md-8"> <div class="col-md-8">
<form id="site-search" method="post" action="{$_url}pool/list/"> <form id="site-search" method="post" action="{$_url}pool/list/">
<div class="input-group"> <div class="input-group">
<div class="input-group-addon"> <div class="input-group-addon">
<span class="fa fa-search"></span> <span class="fa fa-search"></span>
</div> </div>
<input type="text" name="name" class="form-control" placeholder="{$_L['Search_by_Name']}..."> <input type="text" name="name" class="form-control" placeholder="{$_L['Search_by_Name']}...">
<div class="input-group-btn"> <div class="input-group-btn">
<button class="btn btn-success">{$_L['Search']}</button> <button class="btn btn-success">{$_L['Search']}</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<a href="{$_url}pool/add" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['New_Pool']}</a> <a href="{$_url}pool/add" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['New_Pool']}</a>
</div>&nbsp; </div>&nbsp;
</div> </div>
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
<thead> <thead>
<tr> <tr>
<th>#</th> <th>#</th>
<th>{$_L['Pool_Name']}</th> <th>{$_L['Pool_Name']}</th>
<th>{$_L['Range_IP']}</th> <th>{$_L['Range_IP']}</th>
<th>{$_L['Routers']}</th> <th>{$_L['Routers']}</th>
<th>{$_L['Manage']}</th> <th>{$_L['Manage']}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{$no = 1} {$no = 1}
{foreach $d as $ds} {foreach $d as $ds}
<tr> <tr>
<td align="center">{$no++}</td> <td align="center">{$no++}</td>
<td>{$ds['pool_name']}</td> <td>{$ds['pool_name']}</td>
<td>{$ds['range_ip']}</td> <td>{$ds['range_ip']}</td>
<td>{$ds['routers']}</td> <td>{$ds['routers']}</td>
<td align="center"> <td align="center">
<a href="{$_url}pool/edit/{$ds['id']}" class="btn btn-warning btn-sm">{$_L['Edit']}</a> <a href="{$_url}pool/edit/{$ds['id']}" class="btn btn-warning btn-sm">{$_L['Edit']}</a>
<a href="{$_url}pool/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a> <a href="{$_url}pool/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a>
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
</table> </table>
{$paginator['contents']} {$paginator['contents']}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,76 +1,76 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Add_Plan']}</div> <div class="panel-heading">{$_L['Add_Plan']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}services/pppoe-add-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}services/pppoe-add-post" >
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Name']}</label> <label class="col-md-2 control-label">{$_L['Plan_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="name_plan" name="name_plan"> <input type="text" class="form-control" id="name_plan" name="name_plan">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['BW_Name']}</label> <label class="col-md-2 control-label">{$_L['BW_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="id_bw" name="id_bw" class="form-control"> <select id="id_bw" name="id_bw" class="form-control">
<option value="">{$_L['Select_BW']}...</option> <option value="">{$_L['Select_BW']}...</option>
{foreach $d as $ds} {foreach $d as $ds}
<option value="{$ds['id']}">{$ds['name_bw']}</option> <option value="{$ds['id']}">{$ds['name_bw']}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Price']}</label> <label class="col-md-2 control-label">{$_L['Plan_Price']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="price" name="price"> <input type="text" class="form-control" id="price" name="price">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Validity']}</label> <label class="col-md-2 control-label">{$_L['Plan_Validity']}</label>
<div class="col-md-4"> <div class="col-md-4">
<input type="text" class="form-control" id="validity" name="validity"> <input type="text" class="form-control" id="validity" name="validity">
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<select class="form-control" id="validity_unit" name="validity_unit"> <select class="form-control" id="validity_unit" name="validity_unit">
<option value="Days">{$_L['Days']}</option> <option value="Days">{$_L['Days']}</option>
<option value="Months">{$_L['Months']}</option> <option value="Months">{$_L['Months']}</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Router_Name']}</label> <label class="col-md-2 control-label">{$_L['Router_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="routers" name="routers" class="form-control"> <select id="routers" name="routers" class="form-control">
<option value=''>{$_L['Select_Routers']}</option> <option value=''>{$_L['Select_Routers']}</option>
{foreach $r as $rs} {foreach $r as $rs}
<option value="{$rs['name']}">{$rs['name']}</option> <option value="{$rs['name']}">{$rs['name']}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Pool']}</label> <label class="col-md-2 control-label">{$_L['Pool']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="pool_name" name="pool_name" class="form-control"> <select id="pool_name" name="pool_name" class="form-control">
<option value=''>{$_L['Select_Pool']}</option> <option value=''>{$_L['Select_Pool']}</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button> <button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button>
Or <a href="{$_url}services/pppoe">{$_L['Cancel']}</a> Or <a href="{$_url}services/pppoe">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,73 +1,73 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Edit_Plan']}</div> <div class="panel-heading">{$_L['Edit_Plan']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}services/edit-pppoe-post"> <form class="form-horizontal" method="post" role="form" action="{$_url}services/edit-pppoe-post">
<input type="hidden" name="id" value="{$d['id']}"> <input type="hidden" name="id" value="{$d['id']}">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Name']}</label> <label class="col-md-2 control-label">{$_L['Plan_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="name_plan" name="name_plan" value="{$d['name_plan']}" readonly> <input type="text" class="form-control" id="name_plan" name="name_plan" value="{$d['name_plan']}" readonly>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['BW_Name']}</label> <label class="col-md-2 control-label">{$_L['BW_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="id_bw" name="id_bw" class="form-control"> <select id="id_bw" name="id_bw" class="form-control">
{foreach $b as $bs} {foreach $b as $bs}
<option value="{$bs['id']}" {if $d['id_bw'] eq $bs['id']} selected {/if}>{$bs['name_bw']}</option> <option value="{$bs['id']}" {if $d['id_bw'] eq $bs['id']} selected {/if}>{$bs['name_bw']}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Price']}</label> <label class="col-md-2 control-label">{$_L['Plan_Price']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="price" name="price" value="{$d['price']}"> <input type="text" class="form-control" id="price" name="price" value="{$d['price']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Plan_Validity']}</label> <label class="col-md-2 control-label">{$_L['Plan_Validity']}</label>
<div class="col-md-4"> <div class="col-md-4">
<input type="text" class="form-control" id="validity" name="validity" value="{$d['validity']}"> <input type="text" class="form-control" id="validity" name="validity" value="{$d['validity']}">
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<select class="form-control" id="validity_unit" name="validity_unit"> <select class="form-control" id="validity_unit" name="validity_unit">
<option value="Days" {if $d['validity_unit'] eq 'Days'} selected {/if}>{$_L['Days']}</option> <option value="Days" {if $d['validity_unit'] eq 'Days'} selected {/if}>{$_L['Days']}</option>
<option value="Months" {if $d['validity_unit'] eq 'Months'} selected {/if}>{$_L['Months']}</option> <option value="Months" {if $d['validity_unit'] eq 'Months'} selected {/if}>{$_L['Months']}</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Pool']}</label> <label class="col-md-2 control-label">{$_L['Pool']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="pool_name" name="pool_name" class="form-control"> <select id="pool_name" name="pool_name" class="form-control">
{foreach $p as $ps} {foreach $p as $ps}
<option value="{$ps['pool_name']}" {if $d['pool_name'] eq $ps['pool_name']} selected {/if}>{$ps['pool_name']}</option> <option value="{$ps['pool_name']}" {if $d['pool_name'] eq $ps['pool_name']} selected {/if}>{$ps['pool_name']}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Router_Name']}</label> <label class="col-md-2 control-label">{$_L['Router_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="routers" name="routers" value="{$d['routers']}" readonly> <input type="text" class="form-control" id="routers" name="routers" value="{$d['routers']}" readonly>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button> <button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button>
Or <a href="{$_url}services/pppoe">{$_L['Cancel']}</a> Or <a href="{$_url}services/pppoe">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,62 +1,62 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="panel panel-hovered mb20 panel-default"> <div class="panel panel-hovered mb20 panel-default">
<div class="panel-heading">{$_L['PPPOE_Plans']}</div> <div class="panel-heading">{$_L['PPPOE_Plans']}</div>
<div class="panel-body"> <div class="panel-body">
<div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px"> <div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px">
<div class="col-md-8"> <div class="col-md-8">
<form id="site-search" method="post" action="{$_url}services/pppoe/"> <form id="site-search" method="post" action="{$_url}services/pppoe/">
<div class="input-group"> <div class="input-group">
<div class="input-group-addon"> <div class="input-group-addon">
<span class="fa fa-search"></span> <span class="fa fa-search"></span>
</div> </div>
<input type="text" name="name" class="form-control" placeholder="{$_L['Search_by_Name']}..."> <input type="text" name="name" class="form-control" placeholder="{$_L['Search_by_Name']}...">
<div class="input-group-btn"> <div class="input-group-btn">
<button class="btn btn-success">{$_L['Search']}</button> <button class="btn btn-success">{$_L['Search']}</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<a href="{$_url}services/pppoe-add" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['New_Plan']}</a> <a href="{$_url}services/pppoe-add" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['New_Plan']}</a>
</div>&nbsp; </div>&nbsp;
</div> </div>
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
<thead> <thead>
<tr> <tr>
<th>{$_L['Plan_Name']}</th> <th>{$_L['Plan_Name']}</th>
<th>{$_L['Bandwidth_Plans']}</th> <th>{$_L['Bandwidth_Plans']}</th>
<th>{$_L['Plan_Price']}</th> <th>{$_L['Plan_Price']}</th>
<th>{$_L['Plan_Validity']}</th> <th>{$_L['Plan_Validity']}</th>
<th>{$_L['Pool']}</th> <th>{$_L['Pool']}</th>
<th>{$_L['Routers']}</th> <th>{$_L['Routers']}</th>
<th>{$_L['Manage']}</th> <th>{$_L['Manage']}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{foreach $d as $ds} {foreach $d as $ds}
<tr> <tr>
<td>{$ds['name_plan']}</td> <td>{$ds['name_plan']}</td>
<td>{$ds['name_bw']}</td> <td>{$ds['name_bw']}</td>
<td>{$ds['price']}</td> <td>{$ds['price']}</td>
<td>{$ds['validity']} {$ds['validity_unit']}</td> <td>{$ds['validity']} {$ds['validity_unit']}</td>
<td>{$ds['pool']}</td> <td>{$ds['pool']}</td>
<td>{$ds['routers']}</td> <td>{$ds['routers']}</td>
<td> <td>
<a href="{$_url}services/pppoe-edit/{$ds['id']}" class="btn btn-warning btn-sm">{$_L['Edit']}</a> <a href="{$_url}services/pppoe-edit/{$ds['id']}" class="btn btn-warning btn-sm">{$_L['Edit']}</a>
<a href="{$_url}services/pppoe-delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a> <a href="{$_url}services/pppoe-delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a>
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
</table> </table>
{$paginator['contents']} {$paginator['contents']}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,59 +1,59 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"><h3 class="panel-title">{$_L['Recharge_Account']}</h3></div> <div class="panel-heading"><h3 class="panel-title">{$_L['Recharge_Account']}</h3></div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}prepaid/edit-post"> <form class="form-horizontal" method="post" role="form" action="{$_url}prepaid/edit-post">
<input type="hidden" name="id" value="{$d['id']}"> <input type="hidden" name="id" value="{$d['id']}">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Select_Account']}</label> <label class="col-md-2 control-label">{$_L['Select_Account']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="username" name="username" value="{$d['username']}" readonly> <input type="text" class="form-control" id="username" name="username" value="{$d['username']}" readonly>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Service_Plan']}</label> <label class="col-md-2 control-label">{$_L['Service_Plan']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="id_plan" name="id_plan" class="form-control"> <select id="id_plan" name="id_plan" class="form-control">
{foreach $p as $ps} {foreach $p as $ps}
<option value="{$ps['id']}" {if $d['plan_id'] eq $ps['id']} selected {/if}>{$ps['name_plan']}</option> <option value="{$ps['id']}" {if $d['plan_id'] eq $ps['id']} selected {/if}>{$ps['name_plan']}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Created_On']}</label> <label class="col-md-2 control-label">{$_L['Created_On']}</label>
<div class="col-md-6"> <div class="col-md-6">
<div class="input-group date" id="datepicker1"> <div class="input-group date" id="datepicker1">
<input type="text" class="form-control" id="recharged_on" name="recharged_on" value="{$d['recharged_on']}"> <input type="text" class="form-control" id="recharged_on" name="recharged_on" value="{$d['recharged_on']}">
<span class="input-group-addon ion ion-calendar"></span> <span class="input-group-addon ion ion-calendar"></span>
</div> </div>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Expires_On']}</label> <label class="col-md-2 control-label">{$_L['Expires_On']}</label>
<div class="col-md-6"> <div class="col-md-6">
<div class="input-group date" id="datepicker2"> <div class="input-group date" id="datepicker2">
<input type="text" class="form-control" id="expiration" name="expiration" value="{$d['expiration']}"> <input type="text" class="form-control" id="expiration" name="expiration" value="{$d['expiration']}">
<span class="input-group-addon ion ion-calendar"></span> <span class="input-group-addon ion ion-calendar"></span>
</div> </div>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Edit']}</button> <button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Edit']}</button>
Or <a href="{$_url}prepaid/list">{$_L['Cancel']}</a> Or <a href="{$_url}prepaid/list">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,65 +1,65 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="panel panel-hovered mb20 panel-default"> <div class="panel panel-hovered mb20 panel-default">
<div class="panel-heading">{$_L['Prepaid_User']}</div> <div class="panel-heading">{$_L['Prepaid_User']}</div>
<div class="panel-body"> <div class="panel-body">
<div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px"> <div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px">
<div class="col-md-8"> <div class="col-md-8">
<form id="site-search" method="post" action="{$_url}prepaid/list/"> <form id="site-search" method="post" action="{$_url}prepaid/list/">
<div class="input-group"> <div class="input-group">
<div class="input-group-addon"> <div class="input-group-addon">
<span class="fa fa-search"></span> <span class="fa fa-search"></span>
</div> </div>
<input type="text" name="username" class="form-control" placeholder="{$_L['Search_by_Username']}..."> <input type="text" name="username" class="form-control" placeholder="{$_L['Search_by_Username']}...">
<div class="input-group-btn"> <div class="input-group-btn">
<button class="btn btn-success">{$_L['Search']}</button> <button class="btn btn-success">{$_L['Search']}</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<a href="{$_url}prepaid/recharge" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['Recharge_Account']}</a> <a href="{$_url}prepaid/recharge" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['Recharge_Account']}</a>
</div>&nbsp; </div>&nbsp;
</div> </div>
<table id="datatable" class="table table-striped table-bordered"> <table id="datatable" class="table table-striped table-bordered">
<thead> <thead>
<tr> <tr>
<th>{$_L['Username']}</th> <th>{$_L['Username']}</th>
<th>{$_L['Plan_Name']}</th> <th>{$_L['Plan_Name']}</th>
<th>{$_L['Type']}</th> <th>{$_L['Type']}</th>
<th>{$_L['Created_On']}</th> <th>{$_L['Created_On']}</th>
<th>{$_L['Expires_On']}</th> <th>{$_L['Expires_On']}</th>
<th>{$_L['Method']}</th> <th>{$_L['Method']}</th>
<th>{$_L['Routers']}</th> <th>{$_L['Routers']}</th>
<th>{$_L['Manage']}</th> <th>{$_L['Manage']}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{foreach $d as $ds} {foreach $d as $ds}
<tr> <tr>
<td>{$ds['username']}</td> <td>{$ds['username']}</td>
<td>{$ds['namebp']}</td> <td>{$ds['namebp']}</td>
<td>{$ds['type']}</td> <td>{$ds['type']}</td>
<td>{$ds['recharged_on']} {$ds['time']}</td> <td>{$ds['recharged_on']} {$ds['time']}</td>
<td>{$ds['expiration']} {$ds['time']}</td> <td>{$ds['expiration']} {$ds['time']}</td>
<td>{$ds['method']}</td> <td>{$ds['method']}</td>
<td>{$ds['routers']}</td> <td>{$ds['routers']}</td>
<td> <td>
<a href="{$_url}prepaid/edit/{$ds['id']}" class="btn btn-warning btn-sm">{$_L['Edit']}</a> <a href="{$_url}prepaid/edit/{$ds['id']}" class="btn btn-warning btn-sm">{$_L['Edit']}</a>
<a href="{$_url}prepaid/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a> <a href="{$_url}prepaid/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a>
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
</table> </table>
{$paginator['contents']} {$paginator['contents']}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,72 +1,72 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>{$_title}</title> <title>{$_title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="{$_theme}/styles/bootstrap.min.css" rel="stylesheet"> <link href="{$_theme}/styles/bootstrap.min.css" rel="stylesheet">
<link rel="shortcut icon" type="image/x-icon" href="{$_theme}/images/favicon.ico"> <link rel="shortcut icon" type="image/x-icon" href="{$_theme}/images/favicon.ico">
<style type="text/css"> <style type="text/css">
@media print @media print
{ {
.no-print, .no-print * .no-print, .no-print *
{ {
display: none !important; display: none !important;
} }
} }
</style> </style>
</head> </head>
<body> <body>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div id="printable"> <div id="printable">
<h4>{$_L['All_Transactions_at_Date']}: {date($_c['date_format'], strtotime($mdate))}</h4> <h4>{$_L['All_Transactions_at_Date']}: {date($_c['date_format'], strtotime($mdate))}</h4>
<table class="table table-condensed table-bordered" style="background: #ffffff"> <table class="table table-condensed table-bordered" style="background: #ffffff">
<th class="text-center">{$_L['Username']}</th> <th class="text-center">{$_L['Username']}</th>
<th class="text-center">{$_L['Plan_Name']}</th> <th class="text-center">{$_L['Plan_Name']}</th>
<th class="text-center">{$_L['Type']}</th> <th class="text-center">{$_L['Type']}</th>
<th class="text-center">{$_L['Plan_Price']}</th> <th class="text-center">{$_L['Plan_Price']}</th>
<th class="text-center">{$_L['Created_On']}</th> <th class="text-center">{$_L['Created_On']}</th>
<th class="text-center">{$_L['Expires_On']}</th> <th class="text-center">{$_L['Expires_On']}</th>
<th class="text-center">{$_L['Method']}</th> <th class="text-center">{$_L['Method']}</th>
<th class="text-center">{$_L['Routers']}</th> <th class="text-center">{$_L['Routers']}</th>
{foreach $d as $ds} {foreach $d as $ds}
<tr> <tr>
<td>{$ds['username']}</td> <td>{$ds['username']}</td>
<td class="text-center">{$ds['plan_name']}</td> <td class="text-center">{$ds['plan_name']}</td>
<td class="text-center">{$ds['type']}</td> <td class="text-center">{$ds['type']}</td>
<td class="text-right">{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td> <td class="text-right">{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td>
<td>{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}</td>
<td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td>
<td class="text-center">{$ds['method']}</td> <td class="text-center">{$ds['method']}</td>
<td class="text-center">{$ds['routers']}</td> <td class="text-center">{$ds['routers']}</td>
</tr> </tr>
{/foreach} {/foreach}
</table> </table>
<div class="clearfix text-right total-sum mb10"> <div class="clearfix text-right total-sum mb10">
<h4 class="text-uppercase text-bold">{$_L['Total_Income']}:</h4> <h4 class="text-uppercase text-bold">{$_L['Total_Income']}:</h4>
<h3 class="sum">{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}</h3> <h3 class="sum">{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}</h3>
</div> </div>
</div> </div>
<button type="button" id="actprint" class="btn btn-default btn-sm no-print">{$_L['Click_Here_to_Print']}</button> <button type="button" id="actprint" class="btn btn-default btn-sm no-print">{$_L['Click_Here_to_Print']}</button>
</div> </div>
</div> </div>
<script src="{$_theme}/scripts/jquery-1.10.2.js"></script> <script src="{$_theme}/scripts/jquery-1.10.2.js"></script>
<script src="{$_theme}/scripts/bootstrap.min.js"></script> <script src="{$_theme}/scripts/bootstrap.min.js"></script>
{if isset($xfooter)} {if isset($xfooter)}
{$xfooter} {$xfooter}
{/if} {/if}
<script> <script>
jQuery(document).ready(function() { jQuery(document).ready(function() {
// initiate layout and plugins // initiate layout and plugins
$("#actprint").click(function() { $("#actprint").click(function() {
window.print(); window.print();
return false; return false;
}); });
}); });
</script> </script>
</body> </body>
</html> </html>

View File

@ -1,72 +1,72 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>{$_title}</title> <title>{$_title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="{$_theme}/styles/bootstrap.min.css" rel="stylesheet"> <link href="{$_theme}/styles/bootstrap.min.css" rel="stylesheet">
<link rel="shortcut icon" type="image/x-icon" href="{$_theme}/images/favicon.ico"> <link rel="shortcut icon" type="image/x-icon" href="{$_theme}/images/favicon.ico">
<style type="text/css"> <style type="text/css">
@media print @media print
{ {
.no-print, .no-print * .no-print, .no-print *
{ {
display: none !important; display: none !important;
} }
} }
</style> </style>
</head> </head>
<body> <body>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div id="printable"> <div id="printable">
<h4>{$_L['All_Transactions_at_Date']}: {date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}</h4> <h4>{$_L['All_Transactions_at_Date']}: {date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}</h4>
<table class="table table-condensed table-bordered" style="background: #ffffff"> <table class="table table-condensed table-bordered" style="background: #ffffff">
<th class="text-center">{$_L['Username']}</th> <th class="text-center">{$_L['Username']}</th>
<th class="text-center">{$_L['Plan_Name']}</th> <th class="text-center">{$_L['Plan_Name']}</th>
<th class="text-center">{$_L['Type']}</th> <th class="text-center">{$_L['Type']}</th>
<th class="text-center">{$_L['Plan_Price']}</th> <th class="text-center">{$_L['Plan_Price']}</th>
<th class="text-center">{$_L['Created_On']}</th> <th class="text-center">{$_L['Created_On']}</th>
<th class="text-center">{$_L['Expires_On']}</th> <th class="text-center">{$_L['Expires_On']}</th>
<th class="text-center">{$_L['Method']}</th> <th class="text-center">{$_L['Method']}</th>
<th class="text-center">{$_L['Routers']}</th> <th class="text-center">{$_L['Routers']}</th>
{foreach $d as $ds} {foreach $d as $ds}
<tr> <tr>
<td>{$ds['username']}</td> <td>{$ds['username']}</td>
<td class="text-center">{$ds['plan_name']}</td> <td class="text-center">{$ds['plan_name']}</td>
<td class="text-center">{$ds['type']}</td> <td class="text-center">{$ds['type']}</td>
<td class="text-right">{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td> <td class="text-right">{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td>
<td>{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}</td>
<td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td>
<td class="text-center">{$ds['method']}</td> <td class="text-center">{$ds['method']}</td>
<td class="text-center">{$ds['routers']}</td> <td class="text-center">{$ds['routers']}</td>
</tr> </tr>
{/foreach} {/foreach}
</table> </table>
<div class="clearfix text-right total-sum mb10"> <div class="clearfix text-right total-sum mb10">
<h4 class="text-uppercase text-bold">{$_L['Total_Income']}:</h4> <h4 class="text-uppercase text-bold">{$_L['Total_Income']}:</h4>
<h3 class="sum">{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}</h3> <h3 class="sum">{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}</h3>
</div> </div>
</div> </div>
<button type="button" id="actprint" class="btn btn-default btn-sm no-print">{$_L['Click_Here_to_Print']}</button> <button type="button" id="actprint" class="btn btn-default btn-sm no-print">{$_L['Click_Here_to_Print']}</button>
</div> </div>
</div> </div>
<script src="{$_theme}/scripts/jquery-1.10.2.js"></script> <script src="{$_theme}/scripts/jquery-1.10.2.js"></script>
<script src="{$_theme}/scripts/bootstrap.min.js"></script> <script src="{$_theme}/scripts/bootstrap.min.js"></script>
{if isset($xfooter)} {if isset($xfooter)}
{$xfooter} {$xfooter}
{/if} {/if}
<script> <script>
jQuery(document).ready(function() { jQuery(document).ready(function() {
// initiate layout and plugins // initiate layout and plugins
$("#actprint").click(function() { $("#actprint").click(function() {
window.print(); window.print();
return false; return false;
}); });
}); });
</script> </script>
</body> </body>
</html> </html>

View File

@ -1,62 +1,62 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Recharge_Account']}</div> <div class="panel-heading">{$_L['Recharge_Account']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}prepaid/recharge-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}prepaid/recharge-post" >
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Select_Account']}</label> <label class="col-md-2 control-label">{$_L['Select_Account']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="personSelect" name="id_customer" style="width: 100%" data-placeholder="Select a customer..."> <select id="personSelect" name="id_customer" style="width: 100%" data-placeholder="Select a customer...">
<option></option> <option></option>
{foreach $c as $cs} {foreach $c as $cs}
{if $id eq $cs['id']} {if $id eq $cs['id']}
<option value="{$cs['id']}" selected>{$cs['username']}</option> <option value="{$cs['id']}" selected>{$cs['username']}</option>
{else} {else}
<option value="{$cs['id']}">{$cs['username']}</option> <option value="{$cs['id']}">{$cs['username']}</option>
{/if} {/if}
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Type']}</label> <label class="col-md-2 control-label">{$_L['Type']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="radio" id="Hot" name="type" value="Hotspot"> {$_L['Hotspot_Plans']} <input type="radio" id="Hot" name="type" value="Hotspot"> {$_L['Hotspot_Plans']}
<input type="radio" id="POE" name="type" value="PPPOE"> {$_L['PPPOE_Plans']} <input type="radio" id="POE" name="type" value="PPPOE"> {$_L['PPPOE_Plans']}
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Routers']}</label> <label class="col-md-2 control-label">{$_L['Routers']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="server" name="server" class="form-control"> <select id="server" name="server" class="form-control">
<option value=''>Select Routers</option> <option value=''>Select Routers</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Service_Plan']}</label> <label class="col-md-2 control-label">{$_L['Service_Plan']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="plan" name="plan" class="form-control"> <select id="plan" name="plan" class="form-control">
<option value=''>Select Plans</option> <option value=''>Select Plans</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Recharge']}</button> <button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Recharge']}</button>
Or <a href="{$_url}customers/list">{$_L['Cancel']}</a> Or <a href="{$_url}customers/list">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,57 +1,57 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Recharge_Account']}</div> <div class="panel-heading">{$_L['Recharge_Account']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}prepaid/recharge-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}prepaid/recharge-post" >
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Select_Account']}</label> <label class="col-md-2 control-label">{$_L['Select_Account']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="personSelect" name="id_customer" style="width: 100%" data-placeholder="{$_L['Select_Customer']}..."> <select id="personSelect" name="id_customer" style="width: 100%" data-placeholder="{$_L['Select_Customer']}...">
<option></option> <option></option>
{foreach $c as $cs} {foreach $c as $cs}
<option value="{$cs['id']}">{$cs['username']}</option> <option value="{$cs['id']}">{$cs['username']}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Type']}</label> <label class="col-md-2 control-label">{$_L['Type']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="radio" id="Hot" name="type" value="Hotspot"> {$_L['Hotspot_Plans']} <input type="radio" id="Hot" name="type" value="Hotspot"> {$_L['Hotspot_Plans']}
<input type="radio" id="POE" name="type" value="PPPOE"> {$_L['PPPOE_Plans']} <input type="radio" id="POE" name="type" value="PPPOE"> {$_L['PPPOE_Plans']}
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Routers']}</label> <label class="col-md-2 control-label">{$_L['Routers']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="server" name="server" class="form-control"> <select id="server" name="server" class="form-control">
<option value=''>{$_L['Select_Routers']}</option> <option value=''>{$_L['Select_Routers']}</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Service_Plan']}</label> <label class="col-md-2 control-label">{$_L['Service_Plan']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="plan" name="plan" class="form-control"> <select id="plan" name="plan" class="form-control">
<option value=''>{$_L['Select_Plans']}</option> <option value=''>{$_L['Select_Plans']}</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Recharge']}</button> <button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Recharge']}</button>
Or <a href="{$_url}customers/list">{$_L['Cancel']}</a> Or <a href="{$_url}customers/list">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,39 +1,39 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Recharge_Account']}</div> <div class="panel-heading">{$_L['Recharge_Account']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}prepaid/refill-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}prepaid/refill-post" >
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Select_Account']}</label> <label class="col-md-2 control-label">{$_L['Select_Account']}</label>
<div class="col-md-6"> <div class="col-md-6">
<select id="personSelect" name="id_customer" style="width: 100%" data-placeholder="{$_L['Select_Customer']}..."> <select id="personSelect" name="id_customer" style="width: 100%" data-placeholder="{$_L['Select_Customer']}...">
<option></option> <option></option>
{foreach $c as $cs} {foreach $c as $cs}
<option value="{$cs['id']}">{$cs['username']}</option> <option value="{$cs['id']}">{$cs['username']}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Code_Voucher']}</label> <label class="col-md-2 control-label">{$_L['Code_Voucher']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="code" name="code" placeholder="{$_L['Enter_Voucher_Code']}"> <input type="text" class="form-control" id="code" name="code" placeholder="{$_L['Enter_Voucher_Code']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Recharge']}</button> <button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Recharge']}</button>
Or <a href="{$_url}customers/list">{$_L['Cancel']}</a> Or <a href="{$_url}customers/list">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,61 +1,61 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="invoice-wrap"> <div class="invoice-wrap">
<div class="clearfix invoice-head"> <div class="clearfix invoice-head">
<h3 class="brand-logo text-uppercase text-bold left mt15"> <h3 class="brand-logo text-uppercase text-bold left mt15">
<span class="text">{$_L['Daily_Report']}</span> <span class="text">{$_L['Daily_Report']}</span>
</h3> </h3>
</div> </div>
<div class="clearfix invoice-subhead mb20"> <div class="clearfix invoice-subhead mb20">
<div class="group clearfix left"> <div class="group clearfix left">
<p class="text-bold mb5">{$_L['All_Transactions_at_Date']}:</p> <p class="text-bold mb5">{$_L['All_Transactions_at_Date']}:</p>
<p class="small">{date($_c['date_format'], strtotime($mdate))} {$mtime}</p> <p class="small">{date($_c['date_format'], strtotime($mdate))} {$mtime}</p>
</div> </div>
<div class="group clearfix right"> <div class="group clearfix right">
<a href="{$_url}export/print-by-date" class="btn btn-default" target="_blank"><i class="ion ion-printer"></i>{$_L['Export_for_Print']}</a> <a href="{$_url}export/print-by-date" class="btn btn-default" target="_blank"><i class="ion ion-printer"></i>{$_L['Export_for_Print']}</a>
<a href="{$_url}export/pdf-by-date" class="btn btn-default"><i class="fa fa-file-pdf-o"></i>{$_L['Export_to_PDF']}</a> <a href="{$_url}export/pdf-by-date" class="btn btn-default"><i class="fa fa-file-pdf-o"></i>{$_L['Export_to_PDF']}</a>
</div> </div>
</div> </div>
<table class="table table-bordered invoice-table mb10"> <table class="table table-bordered invoice-table mb10">
<thead> <thead>
<tr> <tr>
<th>{$_L['Username']}</th> <th>{$_L['Username']}</th>
<th>{$_L['Type']}</th> <th>{$_L['Type']}</th>
<th>{$_L['Plan_Name']}</th> <th>{$_L['Plan_Name']}</th>
<th>{$_L['Plan_Price']}</th> <th>{$_L['Plan_Price']}</th>
<th>{$_L['Created_On']}</th> <th>{$_L['Created_On']}</th>
<th>{$_L['Expires_On']}</th> <th>{$_L['Expires_On']}</th>
<th>{$_L['Method']}</th> <th>{$_L['Method']}</th>
<th>{$_L['Routers']}</th> <th>{$_L['Routers']}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{foreach $d as $ds} {foreach $d as $ds}
<tr> <tr>
<td>{$ds['username']}</td> <td>{$ds['username']}</td>
<td>{$ds['type']}</td> <td>{$ds['type']}</td>
<td>{$ds['plan_name']}</td> <td>{$ds['plan_name']}</td>
<td class="text-right">{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td> <td class="text-right">{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td>
<td>{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}</td>
<td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td>
<td>{$ds['method']}</td> <td>{$ds['method']}</td>
<td>{$ds['routers']}</td> <td>{$ds['routers']}</td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
</table> </table>
{$paginator['contents']} {$paginator['contents']}
<div class="clearfix text-right total-sum mb10"> <div class="clearfix text-right total-sum mb10">
<h4 class="text-uppercase text-bold">{$_L['Total_Income']}:</h4> <h4 class="text-uppercase text-bold">{$_L['Total_Income']}:</h4>
<h3 class="sum">{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}</h3> <h3 class="sum">{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}</h3>
</div> </div>
<p class="text-center small text-info">{$_L['All_Transactions_at_Date']}: {date($_c['date_format'], strtotime($mdate))} {$mtime}</p> <p class="text-center small text-info">{$_L['All_Transactions_at_Date']}: {date($_c['date_format'], strtotime($mdate))} {$mtime}</p>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,69 +1,69 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="invoice-wrap"> <div class="invoice-wrap">
<div class="clearfix invoice-head"> <div class="clearfix invoice-head">
<h3 class="brand-logo text-uppercase text-bold left mt15"> <h3 class="brand-logo text-uppercase text-bold left mt15">
<span class="text">{$_L['Daily_Report']}</span> <span class="text">{$_L['Daily_Report']}</span>
</h3> </h3>
</div> </div>
<div class="clearfix invoice-subhead mb20"> <div class="clearfix invoice-subhead mb20">
<div class="group clearfix left"> <div class="group clearfix left">
<p class="text-bold mb5">{$_L['All_Transactions_at_Date']}:</p> <p class="text-bold mb5">{$_L['All_Transactions_at_Date']}:</p>
<p class="small">{$stype} [{date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}]</p> <p class="small">{$stype} [{date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}]</p>
</div> </div>
<div class="group clearfix right"> <div class="group clearfix right">
<form method="post" action="{$_url}export/print-by-period" target="_blank"> <form method="post" action="{$_url}export/print-by-period" target="_blank">
<input type="hidden" name="fdate" value="{$fdate}"> <input type="hidden" name="fdate" value="{$fdate}">
<input type="hidden" name="tdate" value="{$tdate}"> <input type="hidden" name="tdate" value="{$tdate}">
<input type="hidden" name="stype" value="{$stype}"> <input type="hidden" name="stype" value="{$stype}">
<button type="submit" class="btn btn-default"><i class="fa fa-print"></i> {$_L['Export_for_Print']}</button> <button type="submit" class="btn btn-default"><i class="fa fa-print"></i> {$_L['Export_for_Print']}</button>
</form> </form>
<form method="post" action="{$_url}export/pdf-by-period" target="_blank"> <form method="post" action="{$_url}export/pdf-by-period" target="_blank">
<input type="hidden" name="fdate" value="{$fdate}"> <input type="hidden" name="fdate" value="{$fdate}">
<input type="hidden" name="tdate" value="{$tdate}"> <input type="hidden" name="tdate" value="{$tdate}">
<input type="hidden" name="stype" value="{$stype}"> <input type="hidden" name="stype" value="{$stype}">
<button type="submit" class="btn btn-default"><i class="fa fa-file-pdf-o"></i> {$_L['Export_to_PDF']}</button> <button type="submit" class="btn btn-default"><i class="fa fa-file-pdf-o"></i> {$_L['Export_to_PDF']}</button>
</form> </form>
</div> </div>
</div> </div>
<table class="table table-bordered invoice-table mb10"> <table class="table table-bordered invoice-table mb10">
<thead> <thead>
<tr> <tr>
<th>{$_L['Username']}</th> <th>{$_L['Username']}</th>
<th>{$_L['Type']}</th> <th>{$_L['Type']}</th>
<th>{$_L['Plan_Name']}</th> <th>{$_L['Plan_Name']}</th>
<th>{$_L['Plan_Price']}</th> <th>{$_L['Plan_Price']}</th>
<th>{$_L['Created_On']}</th> <th>{$_L['Created_On']}</th>
<th>{$_L['Expires_On']}</th> <th>{$_L['Expires_On']}</th>
<th>{$_L['Method']}</th> <th>{$_L['Method']}</th>
<th>{$_L['Routers']}</th> <th>{$_L['Routers']}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{foreach $d as $ds} {foreach $d as $ds}
<tr> <tr>
<td>{$ds['username']}</td> <td>{$ds['username']}</td>
<td>{$ds['type']}</td> <td>{$ds['type']}</td>
<td>{$ds['plan_name']}</td> <td>{$ds['plan_name']}</td>
<td class="text-right">{$_c['currency_code']} {number_format($ds['price'],0,$_c['dec_point'],$_c['thousands_sep'])}</td> <td class="text-right">{$_c['currency_code']} {number_format($ds['price'],0,$_c['dec_point'],$_c['thousands_sep'])}</td>
<td>{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}</td>
<td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td>
<td>{$ds['method']}</td> <td>{$ds['method']}</td>
<td>{$ds['routers']}</td> <td>{$ds['routers']}</td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
</table> </table>
<div class="clearfix text-right total-sum mb10"> <div class="clearfix text-right total-sum mb10">
<h4 class="text-uppercase text-bold">{$_L['Total_Income']}:</h4> <h4 class="text-uppercase text-bold">{$_L['Total_Income']}:</h4>
<h3 class="sum">{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}</h3> <h3 class="sum">{$_c['currency_code']} {number_format($dr,2,$_c['dec_point'],$_c['thousands_sep'])}</h3>
</div> </div>
<p class="text-center small text-info">{$stype} [{date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}]</p> <p class="text-center small text-info">{$stype} [{date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}]</p>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,49 +1,49 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-6"> <div class="col-sm-12 col-md-6">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Period_Reports']}</div> <div class="panel-heading">{$_L['Period_Reports']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}reports/period-view"> <form class="form-horizontal" method="post" role="form" action="{$_url}reports/period-view">
<div class="form-group"> <div class="form-group">
<label class="col-md-3 control-label">{$_L['From_Date']}</label> <label class="col-md-3 control-label">{$_L['From_Date']}</label>
<div class="col-md-9"> <div class="col-md-9">
<div class="input-group date" id="datepicker1"> <div class="input-group date" id="datepicker1">
<input type="text" class="form-control" value="{$tdate}" name="fdate" id="fdate"> <input type="text" class="form-control" value="{$tdate}" name="fdate" id="fdate">
<span class="input-group-addon ion ion-calendar"></span> <span class="input-group-addon ion ion-calendar"></span>
</div> </div>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-3 control-label">{$_L['To_Date']}</label> <label class="col-md-3 control-label">{$_L['To_Date']}</label>
<div class="col-md-9"> <div class="col-md-9">
<div class="input-group date" id="datepicker2"> <div class="input-group date" id="datepicker2">
<input type="text" class="form-control" value="{$mdate}" name="tdate" id="tdate"> <input type="text" class="form-control" value="{$mdate}" name="tdate" id="tdate">
<span class="input-group-addon ion ion-calendar"></span> <span class="input-group-addon ion ion-calendar"></span>
</div> </div>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-3 control-label">{$_L['Type']}</label> <label class="col-md-3 control-label">{$_L['Type']}</label>
<div class="col-md-9"> <div class="col-md-9">
<select class="form-control" id="stype" name="stype"> <select class="form-control" id="stype" name="stype">
<option value="" selected="">{$_L['All_Transactions']}</option> <option value="" selected="">{$_L['All_Transactions']}</option>
<option value="Hotspot">Hotspot</option> <option value="Hotspot">Hotspot</option>
<option value="PPPOE">PPPOE</option> <option value="PPPOE">PPPOE</option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-sm-offset-3 col-sm-9"> <div class="col-sm-offset-3 col-sm-9">
<button type="submit" id="submit" class="btn btn-primary">{$_L['Period_Reports']}</button> <button type="submit" id="submit" class="btn btn-primary">{$_L['Period_Reports']}</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,55 +1,55 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Add_Router']}</div> <div class="panel-heading">{$_L['Add_Router']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}routers/add-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}routers/add-post" >
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Router_Name']}</label> <label class="col-md-2 control-label">{$_L['Router_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="name" name="name"> <input type="text" class="form-control" id="name" name="name">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['IP_Address']}</label> <label class="col-md-2 control-label">{$_L['IP_Address']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" placeholder="192.168.88.1:8728" class="form-control" id="ip_address" name="ip_address"> <input type="text" placeholder="192.168.88.1:8728" class="form-control" id="ip_address" name="ip_address">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Username']}</label> <label class="col-md-2 control-label">{$_L['Username']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="username" name="username"> <input type="text" class="form-control" id="username" name="username">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Router_Secret']}</label> <label class="col-md-2 control-label">{$_L['Router_Secret']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="password" name="password"> <input type="text" class="form-control" id="password" name="password">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Description']}</label> <label class="col-md-2 control-label">{$_L['Description']}</label>
<div class="col-md-6"> <div class="col-md-6">
<textarea class="form-control" id="description" name="description"></textarea> <textarea class="form-control" id="description" name="description"></textarea>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button> <button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button>
Or <a href="{$_url}routers/list">{$_L['Cancel']}</a> Or <a href="{$_url}routers/list">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,55 +1,55 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30"> <div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">{$_L['Edit_Router']}</div> <div class="panel-heading">{$_L['Edit_Router']}</div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" method="post" role="form" action="{$_url}routers/edit-post" > <form class="form-horizontal" method="post" role="form" action="{$_url}routers/edit-post" >
<input type="hidden" name="id" value="{$d['id']}"> <input type="hidden" name="id" value="{$d['id']}">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Router_Name']}</label> <label class="col-md-2 control-label">{$_L['Router_Name']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="name" name="name" value="{$d['name']}"> <input type="text" class="form-control" id="name" name="name" value="{$d['name']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['IP_Address']}</label> <label class="col-md-2 control-label">{$_L['IP_Address']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" placeholder="192.168.88.1:8728" class="form-control" id="ip_address" name="ip_address" value="{$d['ip_address']}"> <input type="text" placeholder="192.168.88.1:8728" class="form-control" id="ip_address" name="ip_address" value="{$d['ip_address']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Username']}</label> <label class="col-md-2 control-label">{$_L['Username']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="username" name="username" value="{$d['username']}"> <input type="text" class="form-control" id="username" name="username" value="{$d['username']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Router_Secret']}</label> <label class="col-md-2 control-label">{$_L['Router_Secret']}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" id="password" name="password" value="{$d['password']}"> <input type="text" class="form-control" id="password" name="password" value="{$d['password']}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{$_L['Description']}</label> <label class="col-md-2 control-label">{$_L['Description']}</label>
<div class="col-md-6"> <div class="col-md-6">
<textarea class="form-control" id="description" name="description">{$d['description']}</textarea> <textarea class="form-control" id="description" name="description">{$d['description']}</textarea>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button> <button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button>
Or <a href="{$_url}routers/list">{$_L['Cancel']}</a> Or <a href="{$_url}routers/list">{$_L['Cancel']}</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,60 +1,60 @@
{include file="sections/header.tpl"} {include file="sections/header.tpl"}
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="panel panel-hovered mb20 panel-default"> <div class="panel panel-hovered mb20 panel-default">
<div class="panel-heading">{$_L['Routers']}</div> <div class="panel-heading">{$_L['Routers']}</div>
<div class="panel-body"> <div class="panel-body">
<div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px"> <div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px">
<div class="col-md-8"> <div class="col-md-8">
<form id="site-search" method="post" action="{$_url}routers/list/"> <form id="site-search" method="post" action="{$_url}routers/list/">
<div class="input-group"> <div class="input-group">
<div class="input-group-addon"> <div class="input-group-addon">
<span class="fa fa-search"></span> <span class="fa fa-search"></span>
</div> </div>
<input type="text" name="name" class="form-control" placeholder="{$_L['Search_by_Name']}..."> <input type="text" name="name" class="form-control" placeholder="{$_L['Search_by_Name']}...">
<div class="input-group-btn"> <div class="input-group-btn">
<button class="btn btn-success">{$_L['Search']}</button> <button class="btn btn-success">{$_L['Search']}</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<a href="{$_url}routers/add" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['New_Router']}</a> <a href="{$_url}routers/add" class="btn btn-primary btn-block waves-effect"><i class="ion ion-android-add"> </i> {$_L['New_Router']}</a>
</div>&nbsp; </div>&nbsp;
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
<thead> <thead>
<tr> <tr>
<th>{$_L['Router_Name']}</th> <th>{$_L['Router_Name']}</th>
<th>{$_L['IP_Address']}</th> <th>{$_L['IP_Address']}</th>
<th>{$_L['Username']}</th> <th>{$_L['Username']}</th>
<th>{$_L['Description']}</th> <th>{$_L['Description']}</th>
<th>{$_L['Manage']}</th> <th>{$_L['Manage']}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{foreach $d as $ds} {foreach $d as $ds}
<tr> <tr>
<td>{$ds['name']}</td> <td>{$ds['name']}</td>
<td>{$ds['ip_address']}</td> <td>{$ds['ip_address']}</td>
<td>{$ds['username']}</td> <td>{$ds['username']}</td>
<td>{$ds['description']}</td> <td>{$ds['description']}</td>
<td> <td>
<a href="{$_url}routers/edit/{$ds['id']}" class="btn btn-warning btn-sm">{$_L['Edit']}</a> <a href="{$_url}routers/edit/{$ds['id']}" class="btn btn-warning btn-sm">{$_L['Edit']}</a>
<a href="{$_url}routers/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a> <a href="{$_url}routers/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a>
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
</table> </table>
</div> </div>
{$paginator['contents']} {$paginator['contents']}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -1,160 +1,160 @@
jQuery(function(){ jQuery(function(){
"use strict"; "use strict";
var MateriaApp=function(){ var MateriaApp=function(){
this.isMobile=null, this.isMobile=null,
this.navHorizontal=!1, this.navHorizontal=!1,
this.fixedHeader=!0, this.fixedHeader=!0,
this.themeActive="theme-zero", this.themeActive="theme-zero",
this.navFull=!1, this.navFull=!1,
this.navOffCanvas=!1, this.navOffCanvas=!1,
this.mainContainer=$(".main-container"), this.mainContainer=$(".main-container"),
this.siteHead=$(".site-head"), this.siteHead=$(".site-head"),
this.siteSettings=$(".site-settings"), this.siteSettings=$(".site-settings"),
this.app=$(".app"), this.app=$(".app"),
this.navWrap=$(".nav-wrap"), this.navWrap=$(".nav-wrap"),
this.contentContainer=$(".content-container"), this.contentContainer=$(".content-container"),
this._init() this._init()
}; };
MateriaApp.prototype._init=function(){ MateriaApp.prototype._init=function(){
this._checkMobile(), this._checkMobile(),
this.toggleSiteNav(), this.toggleSiteNav(),
this.initDefaultSettings(), this.initDefaultSettings(),
this.initRipple(), this.initRipple(),
this.toggleSettingsBox(), this.toggleSettingsBox(),
this.initPerfectScrollbars(), this.initPerfectScrollbars(),
this.toggleFullScreen(), this.toggleFullScreen(),
this.toggleFloatingSidebar(), this.toggleFloatingSidebar(),
this.initNavAccordion() this.initNavAccordion()
}, },
MateriaApp.prototype.initDefaultSettings=function(){ MateriaApp.prototype.initDefaultSettings=function(){
function onNavHorizontal(){ function onNavHorizontal(){
this.checked?(that.navHorizontal=!0, this.checked?(that.navHorizontal=!0,
that.mainContainer.addClass("nav-horizontal")):(that.navHorizontal=!1, that.mainContainer.addClass("nav-horizontal")):(that.navHorizontal=!1,
that.mainContainer.removeClass("nav-horizontal")), that.mainContainer.removeClass("nav-horizontal")),
setTimeout(function(){ setTimeout(function(){
sQuery.navHorizontal=that.navHorizontal, sQuery.navHorizontal=that.navHorizontal,
statesQuery.put(sQuery)}) statesQuery.put(sQuery)})
} }
function onFixedHeader(){ function onFixedHeader(){
this.checked?(that.fixedHeader=!0,that.siteHead.addClass("fixedHeader"), this.checked?(that.fixedHeader=!0,that.siteHead.addClass("fixedHeader"),
that.contentContainer.addClass("fixedHeader")):(that.fixedHeader=!1, that.contentContainer.addClass("fixedHeader")):(that.fixedHeader=!1,
that.siteHead.removeClass("fixedHeader"), that.siteHead.removeClass("fixedHeader"),
that.contentContainer.removeClass("fixedHeader")), that.contentContainer.removeClass("fixedHeader")),
setTimeout(function(){ setTimeout(function(){
sQuery.fixedHeader=that.fixedHeader, sQuery.fixedHeader=that.fixedHeader,
statesQuery.put(sQuery) statesQuery.put(sQuery)
}) })
} }
function onNavFull(){ function onNavFull(){
var elems=["body",".main-container",".nav-wrap",".content-container"]; var elems=["body",".main-container",".nav-wrap",".content-container"];
this.checked?(that.navFull=!0,elems.forEach( this.checked?(that.navFull=!0,elems.forEach(
function(el){$(el).addClass("nav-expand")})):(that.navFull=!1, function(el){$(el).addClass("nav-expand")})):(that.navFull=!1,
elems.forEach(function(el){$(el).removeClass("nav-expand")})), elems.forEach(function(el){$(el).removeClass("nav-expand")})),
setTimeout(function(){sQuery.navFull=that.navFull,statesQuery.put(sQuery)}) setTimeout(function(){sQuery.navFull=that.navFull,statesQuery.put(sQuery)})
} }
function onThemeChange(e){ function onThemeChange(e){
var $t=$(this), var $t=$(this),
$list=that.siteSettings.find("#themeColor li"); $list=that.siteSettings.find("#themeColor li");
$list.removeClass("active"), $list.removeClass("active"),
$t.addClass("active"), $t.addClass("active"),
that.app.removeClass(that.themeActive), that.app.removeClass(that.themeActive),
that.themeActive=$t.data("theme"), that.themeActive=$t.data("theme"),
sQuery.themeActive=that.themeActive, sQuery.themeActive=that.themeActive,
statesQuery.put(sQuery), statesQuery.put(sQuery),
that.app.addClass(that.themeActive), that.app.addClass(that.themeActive),
e.preventDefault() e.preventDefault()
} }
var that=this, var that=this,
SETTINGS_STATES="_setting-states", SETTINGS_STATES="_setting-states",
statesQuery={get:function(){return JSON.parse(localStorage.getItem(SETTINGS_STATES))}, statesQuery={get:function(){return JSON.parse(localStorage.getItem(SETTINGS_STATES))},
put:function(states){localStorage.setItem(SETTINGS_STATES,JSON.stringify(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}; sQuery=statesQuery.get()||{navHorizontal:that.navHorizontal,fixedHeader:that.fixedHeader,navFull:that.navFull,themeActive:that.themeActive};
if(sQuery&&(this.navHorizontal=sQuery.navHorizontal, if(sQuery&&(this.navHorizontal=sQuery.navHorizontal,
this.fixedHeader=sQuery.fixedHeader, this.fixedHeader=sQuery.fixedHeader,
this.navFull=sQuery.navFull, this.navFull=sQuery.navFull,
this.themeActive=sQuery.themeActive), this.themeActive=sQuery.themeActive),
this.siteSettings.find("#navHorizontal").on("change",onNavHorizontal), this.siteSettings.find("#navHorizontal").on("change",onNavHorizontal),
this.siteSettings.find("#fixedHeader").on("change",onFixedHeader), this.siteSettings.find("#fixedHeader").on("change",onFixedHeader),
this.siteSettings.find("#navFull").on("change",onNavFull), this.siteSettings.find("#navFull").on("change",onNavFull),
this.siteSettings.find("#themeColor li").on("click touchstart",onThemeChange), this.siteSettings.find("#themeColor li").on("click touchstart",onThemeChange),
this.app.addClass(this.themeActive), this.app.addClass(this.themeActive),
this.navFull){ this.navFull){
this.siteSettings.find("#navFull")[0].checked=!0; this.siteSettings.find("#navFull")[0].checked=!0;
var elems=["body",".main-container",".nav-wrap",".content-container"]; var elems=["body",".main-container",".nav-wrap",".content-container"];
elems.forEach(function(el){$(el).addClass("nav-expand")}) elems.forEach(function(el){$(el).addClass("nav-expand")})
} }
this.navHorizontal&&(this.siteSettings.find("#navHorizontal")[0].checked=!0, this.navHorizontal&&(this.siteSettings.find("#navHorizontal")[0].checked=!0,
this.mainContainer.addClass("nav-horizontal")), this.mainContainer.addClass("nav-horizontal")),
this.fixedHeader&&(this.siteSettings.find("#fixedHeader")[0].checked=!0, this.fixedHeader&&(this.siteSettings.find("#fixedHeader")[0].checked=!0,
this.siteHead.addClass("fixedHeader"), this.siteHead.addClass("fixedHeader"),
this.contentContainer.addClass("fixedHeader")), this.contentContainer.addClass("fixedHeader")),
this.navOffCanvas&&this.navWrap.addClass("nav-offcanvas") this.navOffCanvas&&this.navWrap.addClass("nav-offcanvas")
}, },
MateriaApp.prototype.initRipple=function(){ MateriaApp.prototype.initRipple=function(){
Waves.attach(".btn"), Waves.attach(".btn"),
Waves.init({duration:900,delay:300}), Waves.init({duration:900,delay:300}),
Waves.attach(".nav-wrap .site-nav .nav-list li"), Waves.attach(".nav-wrap .site-nav .nav-list li"),
Waves.attach(".md-button:not(.md-no-ink)") Waves.attach(".md-button:not(.md-no-ink)")
}, },
MateriaApp.prototype._checkMobile=function(){ MateriaApp.prototype._checkMobile=function(){
var mm=window.matchMedia("(max-width: 767px)"); var mm=window.matchMedia("(max-width: 767px)");
this.isMobile=mm.matches?!0:!1; this.isMobile=mm.matches?!0:!1;
var that=this;mm.addListener(function(m){that.isMobile=m.matches?!0:!1}) var that=this;mm.addListener(function(m){that.isMobile=m.matches?!0:!1})
}, },
MateriaApp.prototype.toggleSiteNav=function(){ MateriaApp.prototype.toggleSiteNav=function(){
this.siteHead.find(".nav-trigger").on("click touchstart",function(e){ this.siteHead.find(".nav-trigger").on("click touchstart",function(e){
var elems=["body",".main-container",".nav-wrap",".content-container"]; var elems=["body",".main-container",".nav-wrap",".content-container"];
elems.forEach(function(el){ elems.forEach(function(el){
$(el).toggleClass("nav-expand"),".nav-wrap"==el&&$(el).toggleClass("nav-offcanvas") $(el).toggleClass("nav-expand"),".nav-wrap"==el&&$(el).toggleClass("nav-offcanvas")
}),e.preventDefault() }),e.preventDefault()
}) })
}, },
MateriaApp.prototype.toggleSettingsBox=function(){ MateriaApp.prototype.toggleSettingsBox=function(){
this.siteSettings.find(".trigger").on("click touchstart", this.siteSettings.find(".trigger").on("click touchstart",
function(e){$(".site-settings").toggleClass("open"),e.preventDefault()}) function(e){$(".site-settings").toggleClass("open"),e.preventDefault()})
}, },
MateriaApp.prototype.initPerfectScrollbars=function(){ MateriaApp.prototype.initPerfectScrollbars=function(){
var $el=$("[data-perfect-scrollbar]"); var $el=$("[data-perfect-scrollbar]");
$el.each(function(){ $el.each(function(){
var $t=$(this); var $t=$(this);
$t.perfectScrollbar({suppressScrollX:!0}), $t.perfectScrollbar({suppressScrollX:!0}),
setInterval(function(){ setInterval(function(){
$t[0].scrollHeight>=$t[0].clientHeight&&$t.perfectScrollbar("update") $t[0].scrollHeight>=$t[0].clientHeight&&$t.perfectScrollbar("update")
},400) },400)
}) })
}, },
MateriaApp.prototype.toggleFullScreen=function(){ MateriaApp.prototype.toggleFullScreen=function(){
$(".site-head .fullscreen").on("click",function(e){screenfull.toggle(),e.preventDefault()}) $(".site-head .fullscreen").on("click",function(e){screenfull.toggle(),e.preventDefault()})
}, },
MateriaApp.prototype.toggleFloatingSidebar=function(){ MateriaApp.prototype.toggleFloatingSidebar=function(){
$(".site-head .floating-sidebar > a").on("click",function(e){$(this).parent().toggleClass("open"),e.preventDefault()}) $(".site-head .floating-sidebar > a").on("click",function(e){$(this).parent().toggleClass("open"),e.preventDefault()})
}, },
MateriaApp.prototype.initNavAccordion=function(){ MateriaApp.prototype.initNavAccordion=function(){
var el=$(".site-nav .nav-list"),lists=el.find("ul").parent("li"), var el=$(".site-nav .nav-list"),lists=el.find("ul").parent("li"),
a=lists.children("a"),aul=lists.find("ul a"), a=lists.children("a"),aul=lists.find("ul a"),
listsRest=el.children("li").not(lists), listsRest=el.children("li").not(lists),
aRest=listsRest.children("a"), aRest=listsRest.children("a"),
stopClick=0,that=this;a.on("click",function(e){ stopClick=0,that=this;a.on("click",function(e){
if(!that.navHorizontal){ if(!that.navHorizontal){
if(e.timeStamp-stopClick>300){ if(e.timeStamp-stopClick>300){
var self=$(this), var self=$(this),
parent=self.parent("li"); parent=self.parent("li");
lists.not(parent).removeClass("open"), lists.not(parent).removeClass("open"),
parent.toggleClass("open"), parent.toggleClass("open"),
stopClick=e.timeStamp stopClick=e.timeStamp
} }
e.preventDefault() e.preventDefault()
} }
e.stopPropagation(), e.stopPropagation(),
e.stopImmediatePropagation() e.stopImmediatePropagation()
}), }),
aul.on("touchend",function(e){ aul.on("touchend",function(e){
that.isMobile&&that.navWrap.toggleClass("nav-offcanvas"), that.isMobile&&that.navWrap.toggleClass("nav-offcanvas"),
e.stopPropagation(), e.stopPropagation(),
e.stopImmediatePropagation() e.stopImmediatePropagation()
}), }),
aRest.on("touchend",function(){that.isMobile&&that.navWrap.toggleClass("nav-offcanvas")}), 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()}) 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 window.MateriaApp=new MateriaApp
}); });

View File

@ -1,106 +1,106 @@
// radio checked - hotspot plan // radio checked - hotspot plan
$(document).ready(function () { $(document).ready(function () {
$('input[type=radio]').change(function(){ $('input[type=radio]').change(function(){
if ($('#Time_Limit').is(':checked')) { if ($('#Time_Limit').is(':checked')) {
$('#DataLimit').hide(); $('#DataLimit').hide();
$('#TimeLimit').show(); $('#TimeLimit').show();
} }
if ($('#Data_Limit').is(':checked')) { if ($('#Data_Limit').is(':checked')) {
$('#TimeLimit').hide(); $('#TimeLimit').hide();
$('#DataLimit').show(); $('#DataLimit').show();
} }
if ($('#Both_Limit').is(':checked')) { if ($('#Both_Limit').is(':checked')) {
$('#TimeLimit').show(); $('#TimeLimit').show();
$('#DataLimit').show(); $('#DataLimit').show();
} }
if ($('#Unlimited').is(':checked')) { if ($('#Unlimited').is(':checked')) {
$('#Type').hide(); $('#Type').hide();
$('#TimeLimit').hide(); $('#TimeLimit').hide();
$('#DataLimit').hide(); $('#DataLimit').hide();
} else { } else {
$('#Type').show(); $('#Type').show();
} }
if ($('#Hotspot').is(':checked')) { if ($('#Hotspot').is(':checked')) {
$('#p').hide(); $('#p').hide();
$('#h').show(); $('#h').show();
} }
if ($('#PPPOE').is(':checked')) { if ($('#PPPOE').is(':checked')) {
$('#p').show(); $('#p').show();
$('#h').hide(); $('#h').hide();
} }
}); });
}); });
$("#Hotspot").prop("checked", true).change(); $("#Hotspot").prop("checked", true).change();
//auto load pool - pppoe plan //auto load pool - pppoe plan
var htmlobjek; var htmlobjek;
$(document).ready(function(){ $(document).ready(function(){
$("#routers").change(function(){ $("#routers").change(function(){
var routers = $("#routers").val(); var routers = $("#routers").val();
$.ajax({ $.ajax({
url: "index.php?_route=autoload/pool", url: "index.php?_route=autoload/pool",
data: "routers="+routers, data: "routers="+routers,
cache: false, cache: false,
success: function(msg){ success: function(msg){
$("#pool_name").html(msg); $("#pool_name").html(msg);
} }
}); });
}); });
}); });
//auto load plans data - recharge user //auto load plans data - recharge user
$(function() { $(function() {
$('input[type=radio]').change(function(){ $('input[type=radio]').change(function(){
if ($('#Hot').is(':checked')) { if ($('#Hot').is(':checked')) {
$.ajax({ $.ajax({
type: "POST", type: "POST",
dataType: "html", dataType: "html",
url: "index.php?_route=autoload/server", url: "index.php?_route=autoload/server",
success: function(msg){ success: function(msg){
$("#server").html(msg); $("#server").html(msg);
} }
}); });
$("#server").change(getAjaxAlamat); $("#server").change(getAjaxAlamat);
function getAjaxAlamat(){ function getAjaxAlamat(){
var server = $("#server").val(); var server = $("#server").val();
$.ajax({ $.ajax({
type: "POST", type: "POST",
dataType: "html", dataType: "html",
url: "index.php?_route=autoload/plan", url: "index.php?_route=autoload/plan",
data: "jenis=Hotspot&server="+server, data: "jenis=Hotspot&server="+server,
success: function(msg){ success: function(msg){
$("#plan").html(msg); $("#plan").html(msg);
} }
}); });
}; };
}else{ }else{
$.ajax({ $.ajax({
type: "POST", type: "POST",
dataType: "html", dataType: "html",
url: "index.php?_route=autoload/server", url: "index.php?_route=autoload/server",
success: function(msg){ success: function(msg){
$("#server").html(msg); $("#server").html(msg);
} }
}); });
$("#server").change(function(){ $("#server").change(function(){
var server = $("#server").val(); var server = $("#server").val();
$.ajax({ $.ajax({
type: "POST", type: "POST",
dataType: "html", dataType: "html",
url: "index.php?_route=autoload/plan", url: "index.php?_route=autoload/plan",
data: "jenis=PPPOE&server="+server, data: "jenis=PPPOE&server="+server,
success: function(msg){ success: function(msg){
$("#plan").html(msg); $("#plan").html(msg);
} }
}); });
}); });
} }
}); });
}); });

View File

@ -1,35 +1,35 @@
jQuery(function(){ jQuery(function(){
"use strict"; "use strict";
function initSelect2(){ function initSelect2(){
$("#personSelect").select2(), $("#personSelect").select2(),
$("#stateSelect").select2(), $("#stateSelect").select2(),
$("#multiSelect").select2(), $("#multiSelect").select2(),
$("#templatingSelect").select2({ $("#templatingSelect").select2({
templateResult:function(state){ templateResult:function(state){
return state.id?$('<span><img src="images/flags/'+state.element.value.toLowerCase()+'.png" class="img-flag" style="margin-right: 3px; height: 12px; width: 12px;"/> '+state.text+"</span>"):state.text}, return state.id?$('<span><img src="images/flags/'+state.element.value.toLowerCase()+'.png" class="img-flag" style="margin-right: 3px; height: 12px; width: 12px;"/> '+state.text+"</span>"):state.text},
templateSelection:function(state){ templateSelection:function(state){
return $('<span><img src="images/flags/'+state.element.value.toLowerCase()+'.png" class="img-flag" style="margin-right: 3px; height: 12px; width: 12px;"/> '+state.text+"</span>")} return $('<span><img src="images/flags/'+state.element.value.toLowerCase()+'.png" class="img-flag" style="margin-right: 3px; height: 12px; width: 12px;"/> '+state.text+"</span>")}
}) })
} }
function initColorpicker(){$("#colorpickerDemo").colorpicker(),$("#colorpickerDemo1").colorpicker()} function initColorpicker(){$("#colorpickerDemo").colorpicker(),$("#colorpickerDemo1").colorpicker()}
function initTextEditor(){$("#textEditorDemo").summernote({height:300})} function initTextEditor(){$("#textEditorDemo").summernote({height:300})}
function initRangeSlider(){ function initRangeSlider(){
var ids=["#sliderEx1","#sliderEx2","#sliderEx3","#sliderEx4","#sliderEx5","#sliderEx6","#sliderEx7"]; var ids=["#sliderEx1","#sliderEx2","#sliderEx3","#sliderEx4","#sliderEx5","#sliderEx6","#sliderEx7"];
ids.forEach(function(id){ ids.forEach(function(id){
$(id).slider() $(id).slider()
}) })
} }
function initDatepicker(){ function initDatepicker(){
$("#datepicker1").datepicker({autoclose:!0}), $("#datepicker1").datepicker({autoclose:!0}),
$("#datepicker2").datepicker({autoclose:!0}), $("#datepicker2").datepicker({autoclose:!0}),
$("#datepicker3").datepicker({todayHighlight:!0}) $("#datepicker3").datepicker({todayHighlight:!0})
} }
function _init(){ function _init(){
initSelect2(), initSelect2(),
initColorpicker(), initColorpicker(),
initTextEditor(), initTextEditor(),
initRangeSlider(), initRangeSlider(),
initDatepicker() initDatepicker()
} }
_init() _init()
}); });

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -1,37 +1,37 @@
!function(){ !function(){
"use strict"; "use strict";
var isCommonjs="undefined"!=typeof module&&module.exports, var isCommonjs="undefined"!=typeof module&&module.exports,
keyboardAllowed="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element, keyboardAllowed="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,
fn=function(){ fn=function(){
for( for(
var val, var val,
valLength, valLength,
fnMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"], fnMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],
["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"], ["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],
["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"], ["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],
["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"], ["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],
["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]], ["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],
i=0, i=0,
l=fnMap.length, l=fnMap.length,
ret={}; ret={};
l>i; l>i;
i++ i++
) )
if(val=fnMap[i], if(val=fnMap[i],
val&&val[1]in document){ val&&val[1]in document){
for(i=0,valLength=val.length;valLength>i;i++) for(i=0,valLength=val.length;valLength>i;i++)
ret[fnMap[0][i]]=val[i]; ret[fnMap[0][i]]=val[i];
return ret return ret
} }
return!1 return!1
}(), }(),
screenfull={ screenfull={
request:function(elem){ request:function(elem){
var request=fn.requestFullscreen; var request=fn.requestFullscreen;
elem=elem||document.documentElement,/5\.1[\.\d]* Safari/.test(navigator.userAgent)?elem[request]():elem[request](keyboardAllowed&&Element.ALLOW_KEYBOARD_INPUT) elem=elem||document.documentElement,/5\.1[\.\d]* Safari/.test(navigator.userAgent)?elem[request]():elem[request](keyboardAllowed&&Element.ALLOW_KEYBOARD_INPUT)
}, },
exit:function(){ exit:function(){
document[fn.exitFullscreen]() document[fn.exitFullscreen]()
}, },
toggle:function(elem){this.isFullscreen?this.exit():this.request(elem)},raw:fn 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)}(); };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)}();

Some files were not shown because too many files have changed in this diff Show More