code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = 1;
include $this->admin_tpl('header','admin');
?>
<div class="pad-lr-10">
<form name="searchform" action="?m=message&c=message&a=search_message&menuid=<?php echo $_GET['menuid'];?>" method="post" >
<table width="100%" cellspacing="0" c... | 108wo | phpcms/modules/message/templates/message_search_list.tpl.php | PHP | asf20 | 3,766 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = 1;
include $this->admin_tpl('header','admin');
?>
<div class="pad-lr-10">
<form name="myform" action="?m=message&c=message&a=delete_group" method="post" onsubmit="checkuid();return false;">
<div class="table-list">
<table width="100... | 108wo | phpcms/modules/message/templates/message_group_list.tpl.php | PHP | asf20 | 3,099 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = 1;
include $this->admin_tpl('header','admin');
?>
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
$("#subject").formValidator({onshow:"<?php ec... | 108wo | phpcms/modules/message/templates/message_send_one.tpl.php | PHP | asf20 | 2,142 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = 1;
include $this->admin_tpl('header','admin');
?>
<div class="pad-lr-10">
<form name="myform" action="?m=message&c=message&a=delete_inbox" method="post" onsubmit="checkuid();return false;">
<div class="table-list">
<table width="100%... | 108wo | phpcms/modules/message/templates/message_inbox_list.tpl.php | PHP | asf20 | 3,015 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = 1;
include $this->admin_tpl('header','admin');
?>
<div class="pad-lr-10">
<form name="myform" action="?m=message&c=message&a=delete_outbox" method="post" onsubmit="checkuid();return false;">
<div class="table-list">
<table width="100... | 108wo | phpcms/modules/message/templates/message_outbox_list.tpl.php | PHP | asf20 | 3,017 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = 1;
include $this->admin_tpl('header','admin');
?>
<div class="pad-lr-10">
<form name="searchform" action="?m=message&c=message&a=search_message&menuid=<?php echo $_GET['menuid'];?>" method="post" >
<table width="100%" cellspacing="0" c... | 108wo | phpcms/modules/message/templates/message_list.tpl.php | PHP | asf20 | 3,745 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('foreground','member');//加载foreground 应用类. 自动判断是否登陆.
pc_base::load_sys_class('format', '', 0);
pc_base::load_sys_class('form', '', 0);
class index extends foreground {
function __construct() {
parent::__construct();
$... | 108wo | phpcms/modules/message/index.php | PHP | asf20 | 8,873 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin','admin',0);
class message extends admin {
function __construct() {
parent::__construct();
$this->db = pc_base::load_model('message_model');
$this->group_db = pc_base::load_model('message_group_model');
$this... | 108wo | phpcms/modules/message/message.php | PHP | asf20 | 12,522 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
class message_tag {
private $message_db;
public function __construct() {
$this->message_db = pc_base::load_model('message_model');
$this->message_group_db = pc_base::load_model('message_group_model');
$this->message_data_db = pc_base::load... | 108wo | phpcms/modules/message/classes/message_tag.class.php | PHP | asf20 | 1,559 |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');
return array('message','message_group','message_data');
?> | 108wo | phpcms/modules/message/install/model.php | PHP | asf20 | 162 |
{template 'member', 'header'}
<script language="javascript" type="text/javascript" src="{JS_PATH}admin_common.js"></script>
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<div id="memberArea">
{template... | 108wo | phpcms/modules/message/install/templates/inbox.html | HTML | asf20 | 3,033 |
{template 'member', 'header'}
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
$("#subject").formValidator({empty:true,onshow:"标题,可以为空",onfocus:"请输入标题",oncorrect:"输入正确!",onempty:"不填替标题了吗?"}).inputValidator({min:1,onerror:"请输入标题... | 108wo | phpcms/modules/message/install/templates/read_group.html | HTML | asf20 | 2,257 |
{template 'member', 'header'}
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
$("#subject").formValidator({empty:true,onshow:"标题,可以为空",onfocus:"请输入标题",oncorrect:"输入正确!",onempty:"不填替标题了吗?"}).inputValidator({min:1,onerror:"请输入标题... | 108wo | phpcms/modules/message/install/templates/read.html | HTML | asf20 | 3,500 |
{template 'member', 'header'}
<script language="javascript" type="text/javascript" src="{JS_PATH}admin_common.js"></script>
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<div id="memberArea">
{template... | 108wo | phpcms/modules/message/install/templates/group.html | HTML | asf20 | 2,011 |
{template 'member', 'header'}
<script language="javascript" type="text/javascript" src="{JS_PATH}admin_common.js"></script>
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<div id="memberArea">
{template... | 108wo | phpcms/modules/message/install/templates/outbox.html | HTML | asf20 | 2,914 |
{template 'member', 'header'}
<div id="memberArea">
{template 'member', 'left'}
<div class="col-auto">
<div class="col-1 ">
<h6 class="title">发送短消息</h6>
<div class="content">
<form name="myform" action="{APP_PATH}index.php?m=message&c=index&a=send" method="post" id="myform">
<table width="100%" cellspacing="0" ... | 108wo | phpcms/modules/message/install/templates/send.html | HTML | asf20 | 3,126 |
{template 'member', 'header'}
<div id="memberArea">
{template 'member', 'left'}
<div class="col-auto">
<div class="col-1 ">
<h6 class="title">查看已发消息</h6>
<div class="content">
<table width="100%" cellspacing="0" class="table_form">
<tr>
<th><div align=center><img src="{IMG_PATH}member/nophoto.... | 108wo | phpcms/modules/message/install/templates/read_only.html | HTML | asf20 | 1,187 |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');
$parentid = $menu_db->insert(array('name'=>'message', 'parentid'=>29, 'm'=>'message', 'c'=>'message', 'a'=>'init', 'data'=>'', 'listorder'=>0, 'display'=>'1'), true);
$menu_db->insert(array('name'=>'send_one', 'parenti... | 108wo | phpcms/modules/message/install/extention.inc.php | PHP | asf20 | 1,150 |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');
$module = 'message';
$modulename = '短消息';
$introduce = '短消息模块';
$author = 'phpcms Team';
$authorsite = 'http://www.phpcms.cn';
$authoremail = '';
?> | 108wo | phpcms/modules/message/install/config.inc.php | PHP | asf20 | 272 |
INSERT INTO `phpcms_module` VALUES ('message', '短消息', '', '0', '1.0', '', '', '0', '0', '2010-09-06', '2010-09-06'); | 108wo | phpcms/modules/message/install/module.php | PHP | asf20 | 122 |
<?php
$LANG['send_message'] = '发送短消息';
$LANG['all_send_message'] = '群发短消息';
$LANG['message'] = '短消息';
$LANG['send'] = '发送';
$LANG['sendto'] = '发送到';
$LANG['subject'] = '标题';
$LANG['content'] = '内容';
$LANG['setting'] = '配置';
$LANG['touserid'] = '收件人';
$LANG['fromuserid'] = '发件人';
$LANG['send_tim... | 108wo | phpcms/modules/message/install/languages/zh-cn/message.lang.php | PHP | asf20 | 1,557 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad_10">
<form name="searchform" action="" method="get" >
<input type="hidden" value="order" name="m">
<input type="hidden" value="order" name="c">
<input type="hidden" value="init" name="a... | 108wo | phpcms/modules/order/templates/order_list.tpl.php | PHP | asf20 | 3,248 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<style type="text/css">
html{_overflow-y:scroll}
</style>
<script language="JavaScript" src="<?php echo JS_PATH; ?>jquery.imgpreview.js"></script>
<script type="text/javascript">
$(document).rea... | 108wo | phpcms/modules/order/templates/order_detail_list.tpl.php | PHP | asf20 | 2,650 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
class index {
function __construct() {
pc_base::load_app_func('global');
$this->order = pc_base::load_model('order_model');//投票标题
$this->username = param::get_cookie('_username');
$this->userid = param::get_cookie('_userid');
$this->ip =... | 108wo | phpcms/modules/order/index.php | PHP | asf20 | 13,273 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin','admin',0);
class order extends admin {
protected $order_db, $order_detail_db;
function __construct() {
parent::__construct();
$this->order_db = pc_base::load_model('order_model');
$this->order_detail_db = pc... | 108wo | phpcms/modules/order/order.php | PHP | asf20 | 5,121 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
class vote_tag {
public function __construct() {
$this->subject_db = pc_base::load_model('vote_subject_model');
$this->option_db = pc_base::load_model('vote_option_model');
}
/**
* 显示
* @param $data
*/
public function show($d... | 108wo | phpcms/modules/order/classes/vote_tag.class.php | PHP | asf20 | 3,815 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
class order_detail {
function __construct() {
pc_base::load_app_func('global');
$this->order_detail = pc_base::load_model('order_detail_model');//投票标题
$this->username = param::get_cookie('_username');
$this->userid = param::get_cookie('_userid');
... | 108wo | phpcms/modules/order/order_detail.php | PHP | asf20 | 9,143 |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');
return array('order');
?> | 108wo | phpcms/modules/order/install/model.php | PHP | asf20 | 129 |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');
$module = 'order';
$modulename = '清单管理';
$introduce = '清单管理模块';
$author = 'eddy0909';
$authorsite = '#';
$authoremail = '';
?> | 108wo | phpcms/modules/order/install/config.inc.php | PHP | asf20 | 254 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
$(document).ready(function() {
$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
$("#name").formValidator({onshow:"请输入分类名称",onfocus:"分类名称不能为... | 108wo | phpcms/modules/brand/templates/brand_editClass.tpl.php | PHP | asf20 | 1,075 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
$(document).ready(function() {
$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
$("#name").formValidator({onshow:"请输入品牌名称",onfocus:"品牌名称不能为... | 108wo | phpcms/modules/brand/templates/brand_add.tpl.php | PHP | asf20 | 2,887 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
$(document).ready(function() {
$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
$("#name").formValidator({onshow:"请输入品牌名称",onfocus:"品牌名称不能为... | 108wo | phpcms/modules/brand/templates/brand_edit.tpl.php | PHP | asf20 | 3,218 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
$(document).ready(function() {
$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
$("#name").formValidator({onshow:"请输入分类名称",onfocus:"分类名称不能为... | 108wo | phpcms/modules/brand/templates/brand_addClass.tpl.php | PHP | asf20 | 1,045 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
var cats = <?php echo $cats_json; ?>;
$(function(){
$("#catid_1").change(function(){
var catid_1 = this.value;
var html="<option value='all'>全部</option>";
if(catid_1 == 'a... | 108wo | phpcms/modules/brand/templates/brand_manage.tpl.php | PHP | asf20 | 5,106 |
<?php
/**
* 会员前台品牌管理
*/
defined('IN_PHPCMS') or exit('No permission resources.');
class index{
private $db;
public $siteid;
public $memberinfo;
/**
* 我的品牌
* Enter description here ...
*/
function __construct() {
$this->db = pc_base::load_model('brand_model');
$this->siteid = get_siteid();
//获取当前... | 108wo | phpcms/modules/brand/index.php | PHP | asf20 | 15,024 |
<?php
/**
* 后台品牌管理
*/
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin','admin',0);
class brand extends admin {
private $db;
public $siteid;
function __construct() {
parent::__construct();
$this->db = pc_base::load_model('brand_model');
$this->siteid = $this->get_site... | 108wo | phpcms/modules/brand/brand.php | PHP | asf20 | 11,338 |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');
return array('brand');
?> | 108wo | phpcms/modules/brand/install/model.php | PHP | asf20 | 129 |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');
$module = 'brand';
$modulename = '品牌管理';
$introduce = '品牌管理模块';
$author = 'eddy0909';
$authorsite = '#';
$authoremail = '';
?> | 108wo | phpcms/modules/brand/install/config.inc.php | PHP | asf20 | 254 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<div class="pad-lr-10">
<div class="table-list">
<form action="?m=template&c=style&a=updatename" method="post">
<table width="100%" cellspacing="0">
<thead>
<tr>
<th width="80"><?php ... | 108wo | phpcms/modules/template/templates/style_list.tpl.php | PHP | asf20 | 1,838 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:... | 108wo | phpcms/modules/template/templates/pc_tag_modules.tpl.php | PHP | asf20 | 4,557 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<style type="text/css">
html{_overflow:hidden}
.frmaa{float:left;width:80%; min-width: 870px; _width:870px;}
.rraa{float: right; width:230px;}
.pt{margin-top: 4px;}
</style>
<body style="over... | 108wo | phpcms/modules/template/templates/file_edit_file.tpl.php | PHP | asf20 | 5,351 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-10">
<form action="?m=template&c=style&a=import" method="post" id="myform" enctype="multipart/form-data">
<div>
<table width="100%" class="table_form">
<tr>
<th width="80"><?p... | 108wo | phpcms/modules/template/templates/style_import.tpl.php | PHP | asf20 | 1,473 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<div class="subnav">
<h1 class="title-2 line-x"><?php echo $this->style_info['name'].' - '.L('detail')?></h1>
</div>
<div class="pad-lr-10">
<div class="table-list">
<form action="?m=template&c=file... | 108wo | phpcms/modules/template/templates/file_list.tpl.php | PHP | asf20 | 3,861 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-10">
<form action="?m=template&c=file&a=edit_pc_tag&style=<?php echo $this->style?>&dir=<?php echo $dir?>&file=<?php echo urlencode($file)?>&op=<?php echo $op?>&tag_md5=<?php echo $_GET... | 108wo | phpcms/modules/template/templates/pc_tag_tools_json_xml.tpl.php | PHP | asf20 | 2,155 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-10">
<form action="?m=template&c=file&a=add_file&style=<?php echo $this->style?>&dir=<?php echo $dir?>" method="post" id="myform">
<div>
<table width="100%" class="table_form">
... | 108wo | phpcms/modules/template/templates/file_add_file.tpl.php | PHP | asf20 | 1,642 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="bk15"></div>
<div class="pad_10">
<div class="table-list">
<table width="100%" cellspacing="0">
<thead>
<tr>
<th><?php echo L('time')?></th>
<th><?php echo L('who')?></... | 108wo | phpcms/modules/template/templates/template_bak_list.tpl.php | PHP | asf20 | 1,367 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-10">
<form action="?m=template&c=file&a=edit_pc_tag&style=<?php echo $this->style?>&dir=<?php echo $dir?>&file=<?php echo urlencode($file)?>&op=<?php echo $op?>&tag_md5=<?php echo $_GET... | 108wo | phpcms/modules/template/templates/pc_tag_tools_get.tpl.php | PHP | asf20 | 2,596 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin', 'admin', 0);
pc_base::load_sys_class('form', '', 0);
pc_base::load_sys_class('format', '', 0);
class file extends admin {
//模板文件夹
private $filepath;
//风格名
private $style;
//风格属性
private $style_info;
//是否允... | 108wo | phpcms/modules/template/file.php | PHP | asf20 | 13,508 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin', 'admin', 0);
class template_bak extends admin {
private $db, $style, $dir, $filename, $filepath, $fileid;
public function __construct() {
parent::__construct();
$this->style = isset($_GET['style']) && trim($_G... | 108wo | phpcms/modules/template/template_bak.php | PHP | asf20 | 2,612 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin', 'admin', 0);
class style extends admin {
//模板文件夹
private $filepath;
public function __construct() {
$this->filepath = PC_PATH.'templates'.DIRECTORY_SEPARATOR;
parent::__construct();
}
public functio... | 108wo | phpcms/modules/template/style.php | PHP | asf20 | 4,894 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
/**
* 生成模板中所有PC标签的MD5
* @param $file 模板文件地址
*/
function tag_md5($file) {
$data = file_get_contents($file);
preg_match_all("/\{pc:(\w+)\s+([^}]+)\}/i", stripslashes($data),$matches);
$arr = array();
if(is_array($matches) && !empty($matches)... | 108wo | phpcms/modules/template/functions/global.func.php | PHP | asf20 | 8,548 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
$session_storage = 'session_'.pc_base::load_config('system','session_storage');
pc_base::load_sys_class($session_storage);
pc_base::load_app_class('foreground','member');
pc_base::load_sys_class('format', '', 0);
pc_base::load_sys_class('form', '',... | 108wo | phpcms/modules/pay/deposit.php | PHP | asf20 | 7,078 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-10">
<div class="common-form">
<fieldset>
<legend><?php echo L('basic_config')?></legend>
<table width="100%" class="table_form">
<tr>
<td width="120"><?php echo L('username')?>... | 108wo | phpcms/modules/pay/templates/pay_detail.tpl.php | PHP | asf20 | 2,401 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
$("#discount").formValidator({onshow:"<?php echo L('disount_n... | 108wo | phpcms/modules/pay/templates/pay_discount.tpl.php | PHP | asf20 | 1,776 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<div class="pad_10">
<div class="table-list">
<form name="searchform" action="" method="get" >
<input type="hidden" value="pay" name="m">
<input type="hidden" value="payment" name="c">
<input type="... | 108wo | phpcms/modules/pay/templates/pay_list.tpl.php | PHP | asf20 | 6,075 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<div class="pad_10">
<div class="table-list">
<form name="searchform" action="" method="get" >
<input type="hidden" value="pay" name="m">
<input type="hidden" value="spend" name="c">
<input type="hi... | 108wo | phpcms/modules/pay/templates/spend_list.tpl.php | PHP | asf20 | 3,371 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
$("#name").formValidator({onshow:"<?php echo L('input').L('pa... | 108wo | phpcms/modules/pay/templates/payment_detail.tpl.php | PHP | asf20 | 4,597 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<div class="pad_10">
<div class="table-list">
<form name="searchform" action="" method="get" >
<input type="hidden" value="pay" name="m">
<input type="hidden" value="payment" name="c">
<input type="... | 108wo | phpcms/modules/pay/templates/pay_stat.tpl.php | PHP | asf20 | 4,340 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<form name="myform" action="?m=admin&c=position&a=listorder" method="post">
<div class="pad_10">
<div class="table-list">
<table width="100%" cellspacing="0">
<thead>
<tr>
... | 108wo | phpcms/modules/pay/templates/payment_list.tpl.php | PHP | asf20 | 2,835 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
$("#unit").formValidator({onshow:"<?php echo L('input_price_t... | 108wo | phpcms/modules/pay/templates/modify_deposit.tpl.php | PHP | asf20 | 3,620 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin','admin',0);
class spend extends admin {
private $db;
public function __construct() {
$this->db = pc_base::load_model('pay_spend_model');
parent::__construct();
}
public function init() {
pc_base::lo... | 108wo | phpcms/modules/pay/spend.php | PHP | asf20 | 2,413 |
<?php
if (isset($set_modules) && $set_modules == TRUE)
{
$i = isset($modules) ? count($modules) : 0;
$modules[$i]['code'] = basename(__FILE__, '.class.php');
$modules[$i]['name'] = L('sndapay', '', 'pay');
$modules[$i]['desc'] = L('sndapay_tip', '', 'pay');
$modules[$i]['is_cod... | 108wo | phpcms/modules/pay/classes/Sndapay.class.php | PHP | asf20 | 6,701 |
<?php
/*
* 支付模块调用工厂
*/
class pay_factory {
public function __construct($adapter_name = '', $adapter_config = array()) {
$this->set_adapter($adapter_name, $adapter_config);
}
/**
* 构造适配器
* @param $adapter_name 支付模块code
* @param $adapter_config 支付模块配置
*/
public function set_adapter($ada... | 108wo | phpcms/modules/pay/classes/pay_factory.class.php | PHP | asf20 | 1,120 |
<?php
abstract class paymentabstract
{
protected $config = array();
protected $product_info = array();
protected $customter_info = array();
protected $order_info = array();
protected $shipping_info = array();
public function set_config($config)
{
foreach ($config as $key => $value) $this->config[$key] = $valu... | 108wo | phpcms/modules/pay/classes/pay_abstract.class.php | PHP | asf20 | 2,668 |
<?php
class pay_deposit {
public function __construct() {
$this->pay_db = pc_base::load_model('pay_payment_model');
$this->account_db = pc_base::load_model('pay_account_model');
}
/**
* 生成流水记录
* @param unknown_type
*/
public function set_record($data){
$require_items = array('userid','us... | 108wo | phpcms/modules/pay/classes/pay_deposit.class.php | PHP | asf20 | 1,797 |
<?php
if (isset($set_modules) && $set_modules == TRUE)
{
$i = isset($modules) ? count($modules) : 0;
$modules[$i]['code'] = basename(__FILE__, '.class.php');
$modules[$i]['name'] = L('bank_transfer', '', 'pay');
$modules[$i]['desc'] = L('transfer', '', 'pay');
$modules[$i]['is_c... | 108wo | phpcms/modules/pay/classes/Bank.class.php | PHP | asf20 | 559 |
<?php
class pay_method {
public function __construct($modules_path) {
$this->db = pc_base::load_model('pay_payment_model');
$this->modules_path = $modules_path;
}
/**
* 获取支付类型列表
*/
public function get_list() {
$list = $this->get_payment();
$install = $this->get_intallpayment();
if(i... | 108wo | phpcms/modules/pay/classes/pay_method.class.php | PHP | asf20 | 2,870 |
<?php
if (isset($set_modules) && $set_modules == TRUE)
{
$i = isset($modules) ? count($modules) : 0;
$modules[$i]['code'] = basename(__FILE__, '.class.php');
$modules[$i]['name'] = L('chinabank', '', 'pay');
$modules[$i]['desc'] = L('chinabank_tip', '', 'pay');
$modules[$i]['is... | 108wo | phpcms/modules/pay/classes/Chinabank.class.php | PHP | asf20 | 5,781 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_func('global','pay');
class receipts {
//数据库连接
protected static $db;
/**
* 数据库连接
*/
protected static function connect() {
self::$db = pc_base::load_model("pay_account_model");
}
/**
* 添加金钱入账记录
*... | 108wo | phpcms/modules/pay/classes/receipts.class.php | PHP | asf20 | 5,331 |
<?php
if (isset($set_modules) && $set_modules == TRUE)
{
$i = isset($modules) ? count($modules) : 0;
$modules[$i]['code'] = basename(__FILE__, '.class.php');
$modules[$i]['name'] = L('alipay', '', 'pay');
$modules[$i]['desc'] = L('alipay_tip', '', 'pay');
$modules[$i]['is_cod']... | 108wo | phpcms/modules/pay/classes/Alipay.class.php | PHP | asf20 | 7,909 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
/**
* 消费记录类使用说明
* @author chenzhouyu
*
* 直接使用pc_base::load_app_class('spend', 'pay', 0);
* 进行加载。
* 使用spend::amonut()进行金钱的消费
* spend::point()进行积分消费
* 当函数返回的结果为false是,可使用spend::get_msg()获取错误原因
*
*/
class spend {
//数据库连接
prote... | 108wo | phpcms/modules/pay/classes/spend.class.php | PHP | asf20 | 6,619 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('foreground','member');
pc_base::load_sys_class('format', '', 0);
pc_base::load_sys_class('form', '', 0);
class spend_list extends foreground {
private $spend_db;
function __construct() {
if (!module_exists(ROUTE_M... | 108wo | phpcms/modules/pay/spend_list.php | PHP | asf20 | 1,665 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
class respond {
private $pay_db, $account_db,$member_db;
function __construct() {
pc_base::load_app_func('global');
}
/**
* return_url get形式响应
*/
public function respond_get() {
if ($_GET['code']){
$payment = $this->ge... | 108wo | phpcms/modules/pay/respond.php | PHP | asf20 | 4,148 |
<?php
/**
* 生成流水号
*/
function create_sn(){
mt_srand((double )microtime() * 1000000 );
return date("YmdHis" ).str_pad( mt_rand( 1, 99999 ), 5, "0", STR_PAD_LEFT );
}
/**
* 返回响应地址
*/
function return_url($code, $is_api = 0){
if($is_api){
return APP_PATH.'index.php?m=pay&c=respond&a=respond_post&code... | 108wo | phpcms/modules/pay/functions/global.func.php | PHP | asf20 | 1,927 |
<?php
/**
*功能:支付宝接口公用函数
*详细:该页面是请求、通知返回两个文件所调用的公用函数核心处理文件,不需要修改
*版本:3.0
*修改日期:2010-05-24
'说明:
'以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
'该代码仅供学习和研究支付宝接口使用,只是提供一个参考。
*/
/**
* 生成签名结果
* @param $array要加密的数组
* @param return 签名结果字符串
*/
function build_mysign($sort_array,$security... | 108wo | phpcms/modules/pay/functions/alipay.func.php | PHP | asf20 | 5,417 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin','admin',0);
pc_base::load_sys_class('format', '', 0);
pc_base::load_sys_class('form', '', 0);
pc_base::load_app_func('global');
class payment extends admin {
private $db, $account_db, $member_db;
function __constru... | 108wo | phpcms/modules/pay/payment.php | PHP | asf20 | 11,227 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad_10">
<div class="table-list">
<table width="100%" cellspacing="0">
<thead>
<tr>
<th width="80">Siteid</th>
<th><?php echo L('dbsource_name')?></th>
<th><?php echo... | 108wo | phpcms/modules/dbsource/templates/dbsource_list.tpl.php | PHP | asf20 | 1,676 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50... | 108wo | phpcms/modules/dbsource/templates/data_add.tpl.php | PHP | asf20 | 4,926 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'... | 108wo | phpcms/modules/dbsource/templates/dbsource_add.tpl.php | PHP | asf20 | 4,740 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad_10">
<div class="table-list">
<form action="" method="get">
<input type="hidden" name="m" value="dbsource" />
<input type="hidden" name="c" value="data" />
<input type="hidden" name="a... | 108wo | phpcms/modules/dbsource/templates/data_list.tpl.php | PHP | asf20 | 3,022 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'... | 108wo | phpcms/modules/dbsource/templates/dbsource_edit.tpl.php | PHP | asf20 | 4,299 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'... | 108wo | phpcms/modules/dbsource/templates/data_edit.tpl.php | PHP | asf20 | 5,349 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin', 'admin', 0);
class dbsource_admin extends admin {
private $db;
public function __construct() {
$this->db = pc_base::load_model('dbsource_model');
parent::__construct();
pc_base::load_app_func('global');
}
... | 108wo | phpcms/modules/dbsource/dbsource_admin.php | PHP | asf20 | 6,482 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin', 'admin', 0);
class data extends admin {
private $db;
public function __construct() {
$this->db = pc_base::load_model('datacall_model');
parent::__construct();
}
public function init() {
$big_menu = ar... | 108wo | phpcms/modules/dbsource/data.php | PHP | asf20 | 10,360 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
/**
* 外部数据源缓存
*/
function dbsource_cache() {
$db = pc_base::load_model('dbsource_model');
$list = $db->select();
$data = array();
if ($list) {
foreach ($list as $val) {
$data[$val['name']] = array('hostname'=>$val['host'].':'.$val['p... | 108wo | phpcms/modules/dbsource/functions/global.func.php | PHP | asf20 | 1,849 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
class call {
private $db;
public function __construct() {
$this->db = pc_base::load_model('datacall_model');
}
public function get() {
$id = isset($_GET['id']) && intval($_GET['id']) ? intval($_GET['id']) : exit();
if ($data = $thi... | 108wo | phpcms/modules/dbsource/call.php | PHP | asf20 | 2,037 |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('UNINSTALL') or exit('Access Denied');
?> | 108wo | phpcms/modules/formguide/uninstall/model.php | PHP | asf20 | 108 |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('UNINSTALL') or exit('Access Denied');
$form_db = pc_base::load_model('sitemodel_model');
$form_field_db = pc_base::load_model('sitemodel_field_model');
$result = $form_db->select(array(), 'tablename');
if (is_array($result)) {
foreach ($result as $r... | 108wo | phpcms/modules/formguide/uninstall/extention.inc.php | PHP | asf20 | 495 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin','admin',0);
class formguide_info extends admin {
private $db, $f_db, $tablename;
public function __construct() {
parent::__construct();
$this->db = pc_base::load_model('sitemodel_field_model');
$this->f_... | 108wo | phpcms/modules/formguide/formguide_info.php | PHP | asf20 | 3,489 |
<?php
//模型原型存储路径
define('MODEL_PATH',PC_PATH.'modules'.DIRECTORY_SEPARATOR.'formguide'.DIRECTORY_SEPARATOR.'fields'.DIRECTORY_SEPARATOR);
define('CACHE_MODEL_PATH',PHPCMS_PATH.'caches'.DIRECTORY_SEPARATOR.'caches_model'.DIRECTORY_SEPARATOR.'caches_data'.DIRECTORY_SEPARATOR);
pc_base::load_app_class('admin','admin',... | 108wo | phpcms/modules/formguide/formguide_field.php | PHP | asf20 | 12,817 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_validator = $show_dialog = 1;
include $this->admin_tpl('header','admin');?>
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({autotip:true,formid:"myform"});
$("#field").formValidator({onshow:"<?php echo L('input... | 108wo | phpcms/modules/formguide/templates/formguide_field_edit.tpl.php | PHP | asf20 | 6,774 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = $show_header = 1;
include $this->admin_tpl('header', 'admin');
?>
<div class="subnav">
<div class="content-menu ib-a blue line-x">
<?php if(isset($big_menu)) echo '<a class="add fb" href="'.$big_menu[0].'"><em>'.$big_menu[1].... | 108wo | phpcms/modules/formguide/templates/formguide_list.tpl.php | PHP | asf20 | 5,077 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_header = 1;
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-10">
<?php
if(is_array($result)){
foreach($result as $v){
?>
<table width="100%" cellspacing="0" class="table-list">
<thead>
<tr>
<th align="left"><stro... | 108wo | phpcms/modules/formguide/templates/formguide_stat.tpl.php | PHP | asf20 | 1,525 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-10">
<form method="post" action="?m=formguide&c=formguide&a=edit&formid=<?php echo $_GET['formid']?>" name="myform" id="myform">
<table class="table_form" width="100%" cellspacing="0">
... | 108wo | phpcms/modules/formguide/templates/formguide_edit.tpl.php | PHP | asf20 | 7,745 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<link href="<?php echo CSS_PATH?>table_form.css" rel="stylesheet" type="text/css" />
<link href="<?php echo CSS_... | 108wo | phpcms/modules/formguide/templates/formguide_preview.tpl.php | PHP | asf20 | 1,674 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_header = 1;
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-10">
<table width="100%" cellspacing="0" class="table-list">
<thead>
<tr>
<th width="15%" align="right"><?php echo L('selects')?></th>
<th align="left"><?p... | 108wo | phpcms/modules/formguide/templates/formguide_info_view.tpl.php | PHP | asf20 | 638 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');?>
<div class="subnav">
<h2 class="title-1 line-x f14 fb blue lh28"><?php echo L('formguide');?>--<?php if ($formid) echo $r['name']; else echo L('public')?><?php echo L('field_manage');?></h2>
<div class="c... | 108wo | phpcms/modules/formguide/templates/formguide_field_list.tpl.php | PHP | asf20 | 4,082 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-lr-10">
<form name="myform" action="?m=formguide&c=formguide_info&a=delete" method="post">
<div class="table-list">
<table width="100%" cellspacing="0">
<thead>
... | 108wo | phpcms/modules/formguide/templates/formguide_info_list.tpl.php | PHP | asf20 | 2,434 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_validator = $show_dialog = 1;
include $this->admin_tpl('header','admin');?>
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({autotip:true,formid:"myform"});
$("#field").formValidator({onshow:"<?php echo L('input... | 108wo | phpcms/modules/formguide/templates/formguide_field_add.tpl.php | PHP | asf20 | 7,487 |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-10">
<form method="post" action="?m=formguide&c=formguide&a=add" name="myform" id="myform">
<table class="table_form" width="100%" cellspacing="0">
<tbody>
<tr>
<th width="150"><st... | 108wo | phpcms/modules/formguide/templates/formguide_add.tpl.php | PHP | asf20 | 6,835 |