예제 #1
0
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="//s1.wp.com/i/favicon.ico?m=1311976025g" sizes="16x16 32x32 48x48">
<link rel="shortcut icon" type="image/x-icon" href="//s1.wp.com/i/favicon.ico?m=1311976025g" sizes="16x16">
<link rel="icon" type="image/x-icon" href="//s1.wp.com/i/favicon.ico?m=1311976025g" sizes="16x16">
<?php 
wp_head();
?>
</head>
<body <?php 
body_class();
?>
>
<div id="wrap">
    <header>
        <div class="row cfx">
            <a href="<?php 
echo domain_name();
?>
" class="logo"></a>
            <a class="c-hamburger c-hamburger--htx" href=""><span></span></a>
            <nav class="cfx">
            <?php 
if (has_nav_menu('primary_menu')) {
    wp_nav_menu(array('container' => false, 'items_wrap' => '<ul id="%1$s">%3$s</ul>', 'theme_location' => 'primary_menu'));
}
?>
            </nav>
            <?php 
get_search_form();
?>
        </div>
    </header>
예제 #2
0
/**
 *
 * http(s)://.....com 까지 리턴한다.
 *
 * @return string
 */
function url_domain()
{
    return '//' . domain_name();
}
예제 #3
0
?>
">
		<link rel="stylesheet" type="text/css" href="<?php 
echo domain_name('PS_Supply/css/bootstrap.min.css');
?>
">
		<link rel="stylesheet" type="text/css" href="<?php 
echo domain_name('PS_Supply/css/bootstrap-theme.min.css');
?>
">
		<link rel="stylesheet" type="text/css" href="<?php 
echo domain_name('PS_Supply/css/control.css');
?>
">
		<link rel="stylesheet" href="<?php 
echo domain_name('PS_Supply/css/datatable.min.css');
?>
">
	</head>
        <body <?php 
if ($action == 'pos_page') {
    ?>
onkeypress="myFunction(event)"<?php 
}
?>
>
		<?php 
if (isset($_SESSION['login_result'])) {
    include '../modules/control/main.php';
} else {
    include '../modules/login/login.php';
예제 #4
0
 function resend_activation()
 {
     $user_id = $this->uri->segment('4');
     $this->load->model('users_model');
     $User = $this->users_model->get_by_id($user_id);
     if (!$User->exists()) {
         return show_404();
     }
     $this->load->library('email');
     $this->email->from('noreply@' . domain_name(), $this->settings->site_name);
     $this->email->to($User->email);
     $this->email->subject($this->settings->site_name . ' Activation');
     $this->email->message("Thank you for your new member registration.\n\nTo activate your account, please visit the following URL\n\n" . site_url('users/activate/' . $User->id . '/' . $User->activation_code) . "\n\nThank You!\n\n" . $this->settings->site_name);
     $this->email->send();
 }
예제 #5
0
<script src="<?php 
echo domain_name('PS_Supply/plugin/ckeditor/ckeditor.js');
?>
"></script>
<div class="panel panel-default">
	<div class="panel-heading">แบบฟอร์มเพิ่มใบแจ้งซ่อม</div>
	<div class="panel-body">
	    <table class="table table-bordered table-data" id="">
	        <thead>
	            <tr>
	                <th class="text-center">เลขบัตรประชาชน</th>
	                <th class="text-center">ชื่อ-นามสกุล</th>
	                <th class="text-center">เบอร์โทรศัพท์</th>
	                <th class="text-center">อีเมลล์</th>
	                <th></th>
	            </tr>
	        </thead>
	        <tbody>
            <?php 
$con = connect_db();
$result = getTable_where("customer_fix", "c_status", "1", $con);
while ($r = assoc_get($result)) {
    ?>
	            <tr>
	                <td align="center"><?php 
    echo $r['c_cradid'];
    ?>
</td>
	                <td><?php 
    echo $r['c_flname'];
    ?>
             $rep = array('{USER_NAME}' => $gmane, '{USER_EMAIL}' => $tomail, '{USER_RESET_LINK}' => "<a href='" . dirname(dirname(curPageURL())) . '/user/reset.php?act=resetpass&key=' . $argv[3] . "'>Reset Password </a>");
         }
         break;
     default:
         while (mysqli_stmt_fetch($stmt)) {
             $rep = array('{TICKET_REFERENCE_ID}' => $refid, '{TICKET_OPERATOR_NAME}' => $opname, '{TICKET_CREATOR_NAME}' => $gmane, '{TICKET_PRIORITY}' => $priority, '{TICKET_STATUS}' => $stat, '{TICKET_DEPARTMENT}' => $dpname, '{TICKET_URL}' => dirname(dirname(curPageURL())) . '/user/view.php?id=' . $argv[2], '{TICKET_TITLE}' => $tit);
         }
         break;
 }
 if (isset($allow) && $allow == 'no') {
     exit;
 } else {
     if (isset($setting[0])) {
         $rep['{SITE_NAME}'] = $setting[0];
     }
     $rep['{SITE_ADDRESS}'] = domain_name();
     $file[1] = html_entity_decode($file[1]);
     foreach ($rep as $find => $sost) {
         $file[1] = str_replace($find, $sost, $file[1]);
     }
     $plain = convert_html_to_text(str_replace('&', '&amp;', str_replace('&nbsp;', ' ', $file[1])));
     //Send Mail
     $message = Swift_Message::newInstance();
     $message->setFrom($settingmail);
     $message->setReplyTo($settingmail);
     $message->setSubject($file[0]);
     $message->setContentType("text/plain; charset=UTF-8");
     $message->setBody($plain, 'text/plain');
     $message->addPart($file[1], 'text/html');
     $message->setTo($tomail);
     if ($smailservice == 0) {
예제 #7
0
    ?>
                    <td align="center"><?php 
    echo $status;
    ?>
</td>
                    <td align="center">
                        <a href="?module=system_claim&action=detail_claim&id=<?php 
    echo $r['cl_id'];
    ?>
" class="btn btn-success" data-toggle="tooltip" data-placement="top" title="ดูรายละเอียด"><i class="glyphicon glyphicon-search"></i></a>
                        <a href="?module=system_claim&action=form_insert_product&id=<?php 
    echo $r['cl_id'];
    ?>
" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="เพิ่มข้อมูลสินค้าที่เครม"><i class="glyphicon glyphicon-plus"></i></a>
                        <a href="<?php 
    echo domain_name('PS_Supply/modules/report/report.php?report=3&id=' . $r['cl_id']);
    ?>
" class="btn btn-warning" target="_blank" data-toggle="tooltip" data-placement="top" title="พิมพ์รายงาน"><i class="glyphicon glyphicon-print"></i></a>
                        <a href="?module=system_claim&action=cancel_claim&id=<?php 
    echo $r['cl_id'];
    ?>
" class="btn btn-danger" data-toggle="tooltip" data-placement="top" title="ยกเลิกใบแจ้งเครม" onclick="return confirm('ยันยืนการลบ?')"><i class="glyphicon glyphicon-remove"></i></a>
                    </td>
                </tr>
                <?php 
}
?>
            </tbody>
        </table>
        </div>
    </div>
예제 #8
0
                    </tr>
                    <tr>
                        <td><h3>เงินทอน</h3></td>
                        <td><input class="total text-right" id="change" name="change" readonly></td>
                    </tr>
                    <tr>
                        <td colspan="2"><button class="btn btn-success btn-lg" type="submit">จบการขาย [Enter]</button></td>
                    </tr>
                </table>
            </form>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script>
	var base_url = "<?php 
echo domain_name('PS_Supply/modules/system_repair');
?>
"
	function change_status(status,id) {
            var status 	= status.value;
            $.ajax({
                type 		: 'POST',
                url		: base_url+'/change_status.php',
                data 		: {
                        rp_status : status,
                        id 	  : id,
                },
                success 	: function(res){
                    if (res == 'success') {
                        alert('เปลี่ยนสถานะเรียบร้อยแล้ว');
                        location.reload();
예제 #9
0
    ?>
" alt="">
					</a>	
				</div>
				<div class='col-md-3 icon-menu'>
					<a href="index.php?module=control&action=system_pos">
						<img src="<?php 
    echo domain_name('PS_Supply/img/sell1.jpg');
    ?>
" alt="">
					</a>	
				</div>
				<div class='col-md-3 icon-menu'>
					<a href="index.php?module=system_products&action=list_products&system=3">
						<img src="<?php 
    echo domain_name('PS_Supply/img/box.jpg');
    ?>
" alt="">
					</a>	
				</div>
			</div>
		</div>
	<?php 
} else {
    ?>
	<div class='col-md-12'>
		<?php 
    include '../modules/' . $module . '/' . $action . '.php';
    ?>
	</div>
	<?php 
예제 #10
0
 function forgot_password()
 {
     // Init
     $data = array();
     // Form Validation
     $this->form_validation->set_rules('email', 'Email', 'trim|valid_email|required|callback_email_exists');
     if ($this->form_validation->run() == TRUE) {
         // Characters to generate password from;
         $chars = "abcdefghijkmnopqrstuvwxyz023456789";
         $i = 0;
         $pass = '';
         // Randomly string together a 7 character password
         while ($i <= 7) {
             $num = rand(0, 33);
             $tmp = $chars[$num];
             $pass .= $tmp;
             $i++;
         }
         $User = $this->input->post('user');
         // Generate and send email
         $this->load->library('email');
         $this->email->from('noreply@' . domain_name(), $this->settings->site_name);
         $this->email->to($User->email);
         $this->email->subject('Password Reset');
         $this->email->message("Your " . $this->settings->site_name . " password has been reset.\n\nYour new password is: {$pass}");
         $this->email->send();
         // Set users password in database
         $User->password = md5($this->config->item('encryption_key') . $pass);
         $this->load->model('users_model');
         $User->save();
         $this->session->set_flashdata('message', '<p class="success">An email containing your new password has been sent to your email address.</p>');
         if ($this->uri->segment(1) == ADMIN_PATH) {
             redirect(ADMIN_PATH . '/users/login');
         } else {
             redirect('users/login');
         }
     }
     // If user was in admin panel load admin view
     if ($this->uri->segment(1) == ADMIN_PATH) {
         $this->template->set_theme('admin', 'default', 'application/themes');
         $this->template->view("admin/forgot_password", $data);
     } else {
         $this->template->view("/users/forgot_password", $data);
     }
 }
예제 #11
0
 private function _send_form()
 {
     $this->load->library('email');
     $this->email->from($this->attribute('from', 'noreply@' . domain_name()), $this->attribute('from_name', $this->settings->site_name));
     $this->email->to($this->attribute('to', $this->settings->notification_email));
     $this->email->subject($this->attribute('subject', 'Contact Form Submission'));
     // Remove Spam Check
     unset($_POST['spam_check']);
     unset($_POST['form_id']);
     unset($_POST['captcha_input']);
     // Build message from $_POST array
     $message = '';
     foreach ($_POST as $field => $value) {
         if (is_array($value)) {
             $message .= ucwords(str_replace('_', ' ', $field)) . ' : ' . "\r\n";
             foreach ($value as $arr_val) {
                 $message .= "\t" . $arr_val . "\r\n";
             }
         } else {
             $message .= ucwords(str_replace('_', ' ', $field)) . ' : ' . $value . "\r\n";
         }
     }
     $this->email->message($message);
     $this->email->send();
 }
예제 #12
0
        $rs_report = 'claim';
        $name_report = 'ใบแจ้งเครม';
        break;
}
$con = connect_db();
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="<?php 
echo domain_name('PS_Supply/css/bootstrap.min.css');
?>
">
    <link rel="stylesheet" href="<?php 
echo domain_name('PS_Supply/css/report.css');
?>
">
    <title><?php 
echo $name_report;
?>
</title>
</head>
<body onload="Print()">
    <?php 
include $rs_report . '.php';
?>
</body>
<script>
    window.print();
</script>