public function Index($_page = 0) { $this->data['user'] = $this->checkLogin(); //########==paging==########// $rec_limit = 25; $count = $this->callModelStaticMethod('OpenSms_Model_Transaction', 'Count'); $no = $count / $rec_limit; if ($count % $rec_limit == 0) { $no -= 1; } $link = '<ul class="pagination">'; for ($i = 0; $i <= $no; $i++) { if ($i == $_page - 1 || $i == 0 && $_page == 0) { $link .= '<li class="active"><a href="#">Page ' . ($i + 1) . '</a></li>'; } else { $link .= '<li><a href="' . OpenSms::getActionUrl('index', 'transactions', 'admin', ['parameter1' => $i + 1]) . '">Page ' . ($i + 1) . '</a></li>'; } } $link .= '</ul>'; if ($_page != 0) { $page = stripslashes($_page) - 1; $offset = $page * $rec_limit; } else { $page = 0; $offset = 0; } $this->data['transactions'] = $this->callModelStaticMethod('OpenSms_Model_Transaction', 'GetRange', [0 => $offset, 1 => $rec_limit]); $this->data['link'] = $link; $this->data['sn'] = $offset; //\paging $this->data['pageTitle'] = 'Transactions | ' . OpenSms::getSystemSetting(OpenSms::SITE_NAME); $this->renderTemplate(); }
public function index($_page = 0) { $user = $this->checkLogin(); //########==paging==########// $rec_limit = 50; $count = OpenSms::callModelStaticMethod('OpenSms_Model_BulkSms', 'GetBulkSMSCount', [0 => $user->LoginId]); $no = $count / $rec_limit; if ($count % $rec_limit == 0) { $no -= 1; } $link = '<ul class="pagination">'; for ($i = 0; $i <= $no; $i++) { if ($i == $_page - 1 || $i == 0 && $_page == 0) { $link .= '<li class="active"><a href="#">Page ' . ($i + 1) . '</a></li>'; } else { $link .= '<li><a href="' . OpenSms::getActionUrl('index', 'sent', 'sms', [0 => $i + 1]) . '">Page ' . ($i + 1) . '</a></li>'; } } $link .= '</ul>'; $this->data['link'] = $link; if ($_page != 0) { $page = stripslashes($_page) - 1; $offset = $page * $rec_limit; } else { $page = 0; $offset = 0; } $this->data['bulkSmsList'] = OpenSms::callModelStaticMethod('OpenSms_Model_BulkSms', 'GetBulkSMS', [0 => $user->LoginId, 1 => $offset, 2 => $rec_limit]); $this->data['pageTitle'] = 'Sent Messages | ' . OpenSms::getSystemSetting(OpenSms::SITE_NAME); $this->data['user'] = $user; $this->renderTemplate(); }
public function detail($groupId, $_page = 0) { $user = $this->checkLogin(); $group = $this->loadModel('OpenSms_Model_Group', [0 => $groupId]); if ($group->GroupExits == TRUE) { //########==paging==########// $rec_limit = 100; $count = $group->GetContactCount(); $no = $count / $rec_limit; if ($count % $rec_limit == 0) { $no -= 1; } $link = '<ul class="pagination">'; for ($i = 0; $i <= $no; $i++) { if ($i == $_page - 1 || $i == 0 && $_page == 0) { $link .= '<li class="active"><a href="#">Page ' . ($i + 1) . '</a></li>'; } else { $link .= '<li><a href="' . OpenSms::getActionUrl('detail', '*', 'group', ['parameter1' => $groupId, 'parameter2' => $i + 1]) . '">Page ' . ($i + 1) . '</a></li>'; } } $link .= '</ul>'; if ($_page != 0) { $page = stripslashes($_page) - 1; $offset = $page * $rec_limit; } else { $page = 0; $offset = 0; } //\paging if ($rec_limit == 0) { $contacts = $group->GetContacts(); } else { $contacts = $group->GetContacts($offset, $rec_limit); } $this->data['user'] = $user; $this->data['group'] = $group; $this->data['contacts'] = $contacts; $this->data['link'] = $link; } else { $this->setError('Group not found', 'group_detail'); OpenSms::redirectToAction('Index'); } $this->data['pageTitle'] = "Groups | " . $this->data['group']->Name . " -> " . OpenSms::getSystemSetting(OpenSms::SITE_NAME); $this->renderTemplate('body'); }
/** * Created by Ademu Anthony. * User: Tony * Date: 3/20/2015 * Time: 3:34 PM */ ?> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Account <small>Transactions</small> </h1> <ol class="breadcrumb"> <li><a href="<?php echo OpenSms::getActionUrl('index', 'account', 'account'); ?> "><i class="fa fa-user"></i> Account</a></li> <li class="active">Transactions</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-md-12"> <div class="box box-primary">
<i class="fa fa-circle-o"></i> <span>Transactions</span> <?php echo $this->isCurrentUri('index', 'transactions', 'account') ? '<i class="fa fa-arrow-right pull-right"></i>' : ''; ?> </a> </li> </ul> </li> <!-- <li class="<?php echo OpenSms::isCurrentModule('settings') ? 'active' : ''; ?> "> <a href="<?php echo OpenSms::getActionUrl('index', 'settings', 'settings'); ?> "> <i class="fa fa-cogs"></i> <span>Settings</span> <?php echo $this->isCurrentUri('index', 'settings', 'settings') ? '<i class="fa fa-arrow-right pull-right"></i>' : ''; ?> </a> </li> --> </ul> </section> <!-- /.sidebar -->
</section> <!-- Main content --> <section class="content"> <div class="row"> <!-- left column --> <div class="col-md-6"> <!-- general form elements --> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title">General Info</h3> </div><!-- /.box-header --> <!-- form start --> <form role="form" action="<?php echo OpenSms::getActionUrl('save'); ?> " method="post"> <div class="box-body"> <div class="form-group"> <label for="exampleInputEmail1">Site Name</label> <input type="text" class="form-control" id="site_name" name="site_name" value="<?php echo $this->getFormData('site_name', OpenSms::FORM_POST_METHOD); ?> " placeholder="Display name of this site"> </div> <div class="form-group"> <label for="exampleInputPassword1">URL</label> <input type="text" class="form-control" id="site_url" name="site_url" value="<?php echo $this->getFormData('site_url', OpenSms::FORM_POST_METHOD); ?>
</table> <?php } ?> </div> </div><!-- /.box --> </div><!-- /.col --> <div class="col-md-4"> <div class="box box-primary"> <form action="<?php echo OpenSms::getActionUrl('addContact', '*', 'group', ['parameter1' => $this->data['group']->Id]); ?> " method="post"> <div class="box-header"> <i class="fa fa-plus-square"></i> <h3 class="box-title">Add Contacts</h3> <!-- tools box --> <div class="pull-right box-tools"> <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button> <button class="btn btn-info btn-sm btn-danger" data-widget="remove" data-toggle="tooltip" title="Remove"> <i class="fa fa-times"></i> </button> </div><!-- /. tools --> </div> <div class="box-body">
</div><!-- /.col --> <div class="col-md-5"> <div class="box box-info"> <div class="box-header with-border"> <h3 class="box-title">New Module</h3> <div class="box-tools pull-right"> <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button> </div> </div><!-- /.box-header --> <form enctype="multipart/form-data" role="form" action="<?php echo OpenSms::getActionUrl('add'); ?> " method="post"> <div class="box-body"> <div class="form-group"> <label for="name">Module File</label> <input type="file" class="form-control" id="file" name="zip_file" placeholder="Module File Path"> </div> </div><!-- /.box-body --> <div class="box-footer"> <button type="submit" class="btn btn-primary">Install</button> </div>
<?php /** * Created by PhpStorm. * User: Tony * Date: 7/3/2015 * Time: 9:38 AM */ ?> <section id="error" class="container text-center"> <h1>Make a Donation</h1> <p>You can be part of this life saving movement. Contact us today for information on how to make your donation</p> <a class="btn btn-primary" href="<?php echo OpenSms::getActionUrl('index', '*', 'contact'); ?> #contact-page">GO TO THE CONTACT PAGE</a> </section><!--/#error-->
echo OpenSms::getActionUrl('Index', 'Dashboard', 'Admin'); ?> "><i class="fa fa-dashboard"></i> Dashboard</a></li> <li><a href="<?php echo OpenSms::getActionUrl('Index', 'Modules', 'Admin'); ?> ">Modules</a></li> <li class="active">Detail</li> </ol> </section> <!-- Main content --> <section class="content"> <form method="post"action="<?php echo OpenSms::getActionUrl('Update'); ?> "> <input type="hidden" name="name" value="<?php echo $this->data['module']->name; ?> "> <div class="row"> <div class="col-md-4 col-md-offset-8"> <div class="box box-default"> <div class="box-body"> <div class="row"> <div class="col-md-6"> <input type="submit" class="btn btn-primary btn-lg"
<div class="modal fade" id="registrationWindow" tabindex="-1" role="dialog" aria-labelledby="RegistrationWindow" aria-hidden="true"> <form action="<?php echo OpenSms::getActionUrl('register', 'account', 'account'); ?> " method="post" role="form" name="register"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel">Creat your new account</h4> </div> <div class="modal-body"> <div class="form-group"> <label for="name">Name</label> <input type="text" class="form-control" id="name" name="name" placeholder="Your fullname"> </div> <div class="form-group"> <label for="username">Username</label> <input type="text" class="form-control" id="username" required name="loginId" placeholder="Enter you desired username"> </div> <div class="form-group"> <label for="password">Password</label> <input type="password" class="form-control" required id="password" name="password" placeholder="Enter your password"> </div> <div class="form-group"> <label for="email">Email Address</label> <input type="email" class="form-control" id="email" name="emailId" required placeholder="Enter a valid Email Address">
<?php echo $this->data['user']->Name; ?> <small>Member since <?php echo $this->data['user']->DateRegistered; ?> </small> </p> </li> <!-- Menu Footer--> <li class="user-footer"> <div class="pull-left"> <a href="<?php echo OpenSms::getActionUrl('Index', 'Account', 'Account'); ?> " class="btn btn-default btn-flat">Profile</a> </div> <div class="pull-right"> <a href="<?php echo OpenSms::getActionUrl('Logout', 'Account', 'Account'); ?> " class="btn btn-default btn-flat">Sign out</a> </div> </li> </ul> </li> </ul> </div> </nav>
</td> <td><?php echo $u->Role; ?> </td> <td><?php echo $u->Layout; ?> </td> <td> <a href="<?php echo OpenSms::getActionUrl('manage', 'pages', 'cms', [0 => $u->Permalink]); ?> " class="btn btn-info">Manage</a> | <a href="<?php echo OpenSms::getActionUrl('delete', 'pages', 'cms', [0 => $u->Permalink]); ?> " class="btn btn-warning">Delete</a> </td> </tr> <?php } ?> </tbody> </table> </div><!-- /.box-body --> </div><!-- /.box --> </div><!-- /.col -->
<?php /** * Created by PhpStorm. * User: Tony * Date: 7/1/2015 * Time: 7:52 AM */ ?> <footer id="footer" class="midnight-blue"> <div class="container"> <div class="row"> <div class="col-sm-6"> © 2015 <a target="_blank" href="<?php echo OpenSms::getActionUrl('index', 'home', 'home'); ?> " title="CLAP Nigeria">CLAP</a>. All Rights Reserved. </div> <div class="col-sm-6"> <ul class="pull-right"> <li><a href="#">Home</a></li> <li><a href="#">About Us</a></li> <li><a href="#">Faq</a></li> <li><a href="#">Contact Us</a></li> </ul> </div> </div> </div> </footer><!--/#footer-->
</div><!-- /.col --> <div class="col-md-5"> <div class="box box-info"> <div class="box-header with-border"> <h3 class="box-title">New Image</h3> <div class="box-tools pull-right"> <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button> </div> </div><!-- /.box-header --> <form role="form" action="<?php echo OpenSms::getActionUrl('addImage'); ?> " method="post" enctype="multipart/form-data"> <div class="box-body"> <div class="form-group"> <label for="name">Key</label> <input type="text" class="form-control" name="key" placeholder="Image key"> </div> <div class="form-group"> <label for="username">Image</label> <input type="file" class="form-control" required name="image" placeholder="Select an image"> </div> </div><!-- /.box-body -->
* Date: 3/21/2015 * Time: 11:02 PM */ ?> <!-- Fixed navbar --> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="<?php echo OpenSms::getSystemSetting(OpenSms::getActionUrl('index', 'home', 'home')); ?> "><?php echo OpenSms::getSystemSetting(OpenSms::SITE_NAME); ?> </a> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav navbar-right"> <li class="active"><a href="index.html">HOME</a></li> <li><a data-toggle="modal" data-target="#priceModal" href="#priceModal">PRICING</a></li> <li><a data-toggle="modal" data-target="#myModal" href="#myModal"><i class="fa fa-envelope-o"></i></a></li> </ul> </div><!--/.nav-collapse --> </div> </div>
protected function isCurrentUri($action, $controller = '', $module = '') { return OpenSms::getActionUrl($action, $controller, $module) == $this->getCurrentUri(); }
</section> <!-- Main content --> <section class="content"> <div class="row"> <!-- left column --> <div class="col-md-6"> <!-- general form elements --> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title">Create Account</h3> </div><!-- /.box-header --> <!-- form start --> <form role="form" action="<?php echo OpenSms::getActionUrl('register'); ?> " method="post"> <div class="box-body"> <div class="form-group"> <label for="name">Name</label> <input type="text" class="form-control" id="name" name="Name" placeholder="Your fullname"> </div> <div class="form-group"> <label for="username">Username</label> <input type="text" class="form-control" id="LoginId" required name="LoginId" placeholder="Enter you desired username"> </div> <div class="form-group"> <label for="password">Password</label> <input type="password" class="form-control" required id="password"
</div><!-- /.box --> </div><!--/.col (right) --> <?php if ($this->data['success']) { ?> <!-- left column --> <div class="col-md-6"> <!-- general form elements --> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title">Admin Login</h3> </div><!-- /.box-header --> <!-- form start --> <form role="form" action="<?php echo OpenSms::getActionUrl('login', 'account', 'account'); ?> " method="post"> <div class="box-body"> <div class="form-group"> <label for="exampleInputEmail1">Username</label> <input type="text" class="form-control" id="username" required="required" name="username" value="<?php echo $this->getFormData('username', OpenSms::FORM_POST_METHOD); ?> " placeholder="Admin Username"> </div> <div class="form-group"> <label for="exampleInputPassword1">Password</label> <input type="password" required="required" class="form-control" id="site_url" name="admin_password" placeholder="Admin Password">
?> </ul> </div><!-- /.box-body --> </div><!-- /.box --> </div><!-- /.col --> <div class="col-md-4"> <div class="box box-info"> <form action="<?php echo OpenSms::getActionUrl('Add', '*'); ?> " method="post"> <div class="box-header"> <i class="fa fa-plus-square"></i> <h3 class="box-title">New Group</h3> <!-- tools box --> <div class="pull-right box-tools"> <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button> <button class="btn btn-info btn-sm" data-widget="remove" data-toggle="tooltip" title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> </div> <div class="box-body"> <div class="form-group"> <input type="text" class="form-control" name="Name" placeholder="Group Name"/> </div>
</div> <div class="modal-body"> <textarea id="raw_editor_body" name="body" class="form-control"></textarea> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="submit" class="btn btn-primary">Save changes</button> </div> </div><!-- /.modal-content --> </form> </div><!-- /.modal-dialog --> </div><!-- /.modal --> <div class="cms-submitter" style="display: none;"> <form role="form" action="<?php echo OpenSms::getActionUrl('save', '*', 'cms'); ?> ?action=cms" method="post"> <input type="hidden" id="html_editor_id" name="id"> <input type="hidden" id="html_editor_key" name="key"> <input type="hidden" id="html_editor_body" name="body"> <input type="hidden" value="<?php echo OpenSms::getCurrentUrl(); ?> " name="returnUrl"> <button id="html_editor_btn_save" class="btn-lg btn-primary" type="submit">Save Changes</button> <button id="html_editor_btn_cancel" class="btn-lg btn-danger" type="button">Cancel</button> </form> </div>
<td><?php echo $tran->PaymentMethod; ?> </td> <td><?php echo $tran->Status; ?> </td> <td> <a href="<?php echo OpenSms::getActionUrl('Delete', 'Transactions', 'Admin', ['parameter1' => $tran->Id]); ?> " class="btn btn-warning">Delete</a> | <a href="<?php echo OpenSms::getActionUrl('Manage', 'Transactions', 'Admin', ['parameter1' => $tran->Id]); ?> " class="btn btn-primary">Manage</a> </td> </tr> <?php } ?> </tbody> <tfoot> <ul> <?php echo $this->data['link'];
</section> <!-- Main content --> <section class="content"> <div class="row"> <!-- left column --> <div class="col-md-6"> <!-- general form elements --> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title">Login to your account</h3> </div><!-- /.box-header --> <!-- form start --> <form role="form" action="<?php echo OpenSms::getActionUrl('login'); ?> " method="post"> <div class="box-body"> <div class="form-group"> <label for="username">Username</label> <input type="text" class="form-control" id="LoginId" required name="LoginId" placeholder="Enter you desired username"> </div> <div class="form-group"> <label for="password">Password</label> <input type="password" class="form-control" required id="password" name="Password" placeholder="Enter your password"> </div> </div><!-- /.box-body -->
?> </td> <td><?php echo $b->Message; ?> </td> <td><?php echo $b->DateCreated; ?> </td> <td><?php echo $b->Status; ?> </td> <td><a href="<?php echo OpenSms::getActionUrl('detail', 'sent', 'sms', [0 => $b->Id]); ?> ">View Detail</a></td> </tr> <?php } ?> </tbody> <tfoot> <tr> <td colspan="5" style="text-align: center;"><?php echo $this->data['link']; ?> </td> </tr> </tfoot>
echo OpenSms::getBaseUrl(); ?> app/design/default/assets/plugins/iCheck/square/blue.css" rel="stylesheet" type="text/css" /> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> <![endif]--> </head> <body class="register-page"> <div class="register-box"> <div class="register-logo"> <a href="<?php echo OpenSms::getActionUrl('Index', 'Home', 'Home'); ?> "> <?php echo OpenSms::getSystemSetting(OpenSms::SITE_NAME); ?> </a> </div> <?php $this->renderTemplate('content'); ?> </div><!-- /.register-box --> <!-- jQuery 2.1.3 --> <script src="<?php
echo $this->data['transaction']->Id; ?> "> <div class="box-header"> <i class="fa fa-plus-square"></i> <h3 class="box-title">Manage Transaction</h3> <!-- tools box --> <div class="pull-right box-tools"> <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button> </div><!-- /. tools --> </div> <div class="box-body"> <input type="hidden" name="returnUrl" value="<?php echo OpenSms::getActionUrl('Manage', 'Transactions', 'Admin', [0 => $this->data['transaction']->Id]); ?> "> <input type="hidden" name="LoginId" value="<?php echo $this->data['transaction']->LoginId; ?> "> <div class="form-group"> <label for="TranAmount">Amount</label> <input type="text" readonly value="<?php echo $this->data['transaction']->Amount; ?> " class="form-control" id="TranAmount" name="Amount" placeholder="Amount"> </div> <div class="form-group">
* Time: 3:34 PM */ ?> <!-- Content Header (Page header) --> <section class="content-header"> <h1> SMS <small>Sent Messages</small> </h1> <ol class="breadcrumb"> <li><a href="<?php echo OpenSms::getActionUrl('Index', 'Compose'); ?> ">SMS</a> </li> <li><a href="<?php echo OpenSms::getActionUrl('Index'); ?> ">Sent Messages</a> </li> <li class="active"><i class="fa fa-envelope"></i> Sent Messages</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-md-12"> <div class="box box-primary"> <div class="box-header"> <h3>SMS Report</h3> </div>
<div class="box-header"> <i class="fa fa-plus-square"></i> <h3 class="box-title">New Transaction</h3> <!-- tools box --> <div class="pull-right box-tools"> <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button> <button class="btn btn-info btn-sm btn-danger" data-widget="remove" data-toggle="tooltip" title="Remove"> <i class="fa fa-times"></i> </button> </div><!-- /. tools --> </div> <div class="box-body"> <input type="hidden" name="returnUrl" value="<?php echo OpenSms::getActionUrl('Manage', 'Users', 'Admin', [0 => $this->data['curUser']->LoginId]); ?> "> <input type="hidden" name="LoginId" value="<?php echo $this->data['curUser']->LoginId; ?> "> <div class="form-group"> <label for="TranAmount">Amount</label> <input type="text" class="form-control" id="TranAmount" name="Amount" placeholder="Amount"> </div> <div class="form-group"> <label for="TranAmount">Unit</label> <input type="number" class="form-control" id="TranAmount" name="Unit" placeholder="Unit"> </div>
<section class="content"> <div class="row"> <div class="col-md-12"> <div class="box box-primary"> <div class="box-header"> <h3>Compose Message <small>(SMS Balance = <?php echo $this->data['user']->Balance; ?> )</small></h3> </div> <div class="box-body"> <form role="form" enctype="multipart/form-data" id="compose_message" method="post" action="<?php echo OpenSms::getActionUrl('send'); ?> "> <fieldset class="fancy"> <div class="form-group"> <label for="sender">Sender</label> <input type="text" class="form-control" name="sender" id="sender" value="" maxlength="11"> </div> <label for="recipient">Recepients:</label> <!-- Nav tabs --> <ul class="nav nav-tabs" role="tablist"> <li class="active"><a href="#enterNumbers" role="tab" data-toggle="tab">Enter Numbers</a></li> <li><a href="#selectGroup" role="tab" data-toggle="tab">Select Group</a></li>
* Time: 3:34 PM */ ?> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Transaction <small>Make Payment</small> </h1> <ol class="breadcrumb"> <li><a href="<?php echo OpenSms::getActionUrl('Index', 'Dashboard', 'Dashboard'); ?> "><i class="fa fa-dashboard"></i> Dashboard</a></li> <li><a href="<?php echo OpenSms::getActionUrl('Index', 'Transaction', 'Account'); ?> "><i class="fa fa-dashboard"></i> Transaction</a></li> <li class="active">Make Payment</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-md-7"> <!-- BANK DETAIL --> <div class="box box-primary">