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_header = 1; include $this->admin_tpl('header', 'admin'); ?> <form method="post" action="?m=formguide&c=formguide&a=setting" id="myform" name="myform"> <table width="100%" cellpadding="0" cellspacing="1" class="table_form"> <tr> <th width="...
108wo
phpcms/modules/formguide/templates/setting.tpl.php
PHP
asf20
2,128
<?php defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_app_class('admin','admin',0); pc_base::load_sys_class('form', '', ''); class formguide extends admin { private $db, $tablename, $m_db, $M; public function __construct() { parent::__construct(); $this->tablename = ''; $se...
108wo
phpcms/modules/formguide/formguide.php
PHP
asf20
11,147
<?php defined('IN_PHPCMS') or exit('No permission resources.'); define('CACHE_MODEL_PATH',PHPCMS_PATH.'caches'.DIRECTORY_SEPARATOR.'caches_model'.DIRECTORY_SEPARATOR.'caches_data'.DIRECTORY_SEPARATOR); class index { private $db, $m_db, $M; function __construct() { $this->db = pc_base::load_model('sitemodel_...
108wo
phpcms/modules/formguide/index.php
PHP
asf20
4,416
<?php defined('IN_PHPCMS') or exit('No permission resources.'); //模型原型存储路径 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_...
108wo
phpcms/modules/formguide/classes/formguide.class.php
PHP
asf20
1,395
<?php defined('IN_ADMIN') or exit('No permission resources.'); $defaultvalue = isset($_POST['setting']['defaultvalue']) ? $_POST['setting']['defaultvalue'] : ''; //正整数 UNSIGNED && SIGNED $minnumber = isset($_POST['setting']['minnumber']) ? $_POST['setting']['minnumber'] : 1; $decimaldigits = isset($_POST['setting'...
108wo
phpcms/modules/formguide/fields/add.sql.php
PHP
asf20
3,390
<?php class formguide_input { var $formid; var $fields; var $data; function __construct($formid) { $this->formid = $formid; $this->fields = getcache('formguide_field_'.$formid, 'model'); $this->siteid = get_siteid(); //初始化附件类 pc_base::load_sys_class('attachment','',0); $this->siteid = pa...
108wo
phpcms/modules/formguide/fields/formguide_input.class.php
PHP
asf20
2,220
<?php $fields = array('text'=>'单行文本', 'textarea'=>'多行文本', 'editor'=>'编辑器', 'box'=>'选项', 'image'=>'图片', 'images'=>'多图片', 'number'=>'数字', 'datetime'=>'日期和时间', 'linkage'=>'联动菜单', ); //不允许删除的字段,这些字段讲不会在字段添加处显示 $not_allow_fields = array('catid','typeid','title','keyword','posi...
108wo
phpcms/modules/formguide/fields/fields.inc.php
PHP
asf20
1,018
function linkage($field, $value, $fieldinfo) { $setting = string2array($fieldinfo['setting']); $linkageid = $setting['linkageid']; return menu_linkage($linkageid,$field,$value); }
108wo
phpcms/modules/formguide/fields/linkage/form.inc.php
PHP
asf20
193
<?php defined('IN_ADMIN') or exit('No permission resources.'); $field_type = 'number'; //字段数据库类型 $field_basic_table = 1; //是否允许作为主表字段 $field_allow_index = 1; //是否允许建立索引 $field_minlength = 0; //字符长度默认最小值 $field_maxlength = ''; //字符长度默认最大值 $field_allow_search = 1; //作为搜索条件 $field_allow_fulltext = 0; ...
108wo
phpcms/modules/formguide/fields/linkage/config.inc.php
PHP
asf20
500
<table cellpadding="2" cellspacing="1" width="98%"> <tr> <td>菜单ID</td> <td><input type="text" id="linkageid" name="setting[linkageid]" value="0" size="5" class="input-text"> <input type='button' value="在列表中选择" onclick="omnipotent('selectid','?m=admin&c=linkage&a=public_get_list','在列表中选择')" class="...
108wo
phpcms/modules/formguide/fields/linkage/field_add_form.inc.php
Hack
asf20
943
<?php defined('IN_PHPCMS') or exit('No permission resources.');?> <table cellpadding="2" cellspacing="1" width="98%"> <tr> <td>菜单ID</td> <td><input type="text" id="linkageid" name="setting[linkageid]" value="<?php echo $setting['linkageid'];?>" size="5"> <input type='button' value="在列表中选择" onclic...
108wo
phpcms/modules/formguide/fields/linkage/field_edit_form.inc.php
PHP
asf20
1,218
function linkage($field, $value) { $setting = string2array($this->fields[$field]['setting']); $datas = getcache($setting['linkageid'],'linkage'); $infos = $datas['data']; if($setting['showtype']==1) { $result = get_linkage($value, $setting['linkageid'], $setting['space'], 1); } elseif($setting['show...
108wo
phpcms/modules/formguide/fields/linkage/output.inc.php
PHP
asf20
478
<?php class formguide_update { var $modelid; var $fields; var $data; function __construct($modelid,$id) { $this->modelid = $modelid; $this->fields = getcache('model_field_'.$modelid,'model'); $this->id = $id; } function update($data) { $info = array(); $this->data = $data; foreach...
108wo
phpcms/modules/formguide/fields/formguide_update.class.php
PHP
asf20
545
function images($field, $value, $fieldinfo) { extract($fieldinfo); $list_str = ''; if($value) { $value = string2array(html_entity_decode($value,ENT_QUOTES)); if(is_array($value)) { foreach($value as $_k=>$_v) { $list_str .= "<li id='image{$_k}' style='padding:1px'><input type='text' name='{$...
108wo
phpcms/modules/formguide/fields/images/form.inc.php
Hack
asf20
1,850
function images($field, $value) { return string2array($value); }
108wo
phpcms/modules/formguide/fields/images/ouput.inc.php
PHP
asf20
72
<?php defined('IN_ADMIN') or exit('No permission resources.'); $field_type = 'mediumtext'; //字段数据库类型 $field_allow_index = 0; //是否允许建立索引 $field_minlength = 0; //字符长度默认最小值 $field_maxlength = ''; //字符长度默认最大值 $field_allow_search = 0; //作为搜索条件 $field_allow_isunique = 0; //是否允许值唯一 ?>
108wo
phpcms/modules/formguide/fields/images/config.inc.php
PHP
asf20
388
<table cellpadding="2" cellspacing="1" width="98%"> <tr> <td>允许上传的图片类型</td> <td><input type="text" name="setting[upload_allowext]" value="gif|jpg|jpeg|png|bmp" size="40" class="input-text"></td> </tr> <tr> <td>是否从已上传中选择</td> <td><input type="radio" name="setting[isselectimage]" va...
108wo
phpcms/modules/formguide/fields/images/field_add_form.inc.php
Hack
asf20
614
<?php defined('IN_PHPCMS') or exit('No permission resources.');?> <table cellpadding="2" cellspacing="1" width="98%"> <tr> <td>允许上传的图片类型</td> <td><input type="text" name="setting[upload_allowext]" value="<?php echo $setting['upload_allowext'];?>" size="40" class="input-text"></td> </tr> <tr> ...
108wo
phpcms/modules/formguide/fields/images/field_edit_form.inc.php
PHP
asf20
840
function images($field, $value) { return string2array($value); }
108wo
phpcms/modules/formguide/fields/images/output.inc.php
PHP
asf20
72
function images($field, $value) { //取得图片列表 $pictures = $_POST[$field.'_url']; //取得图片说明 $pictures_alt = $_POST[$field.'_alt']; $array = $temp = array(); if(!empty($pictures)) { foreach($pictures as $key=>$pic) { $temp['url'] = $pic; $temp['alt'] = $pictures_alt[$key]; $array[$key] =...
108wo
phpcms/modules/formguide/fields/images/input.inc.php
PHP
asf20
420
<?php if(!$maxlength) $maxlength = 255; $maxlength = min($maxlength, 255); $fieldtype = $issystem ? 'CHAR' : 'VARCHAR'; $sql = "ALTER TABLE `$tablename` CHANGE `$field` `$field` $fieldtype( $maxlength ) NOT NULL DEFAULT '$defaultvalue'"; $db->query($sql); ?>
108wo
phpcms/modules/formguide/fields/textarea/field_edit.inc.php
PHP
asf20
265
function textarea($field, $value, $fieldinfo) { extract($fieldinfo); $setting = string2array($setting); extract($setting); if(!$value) $value = $defaultvalue; $allow_empty = 'empty:true,'; if($minlength || $pattern) $allow_empty = ''; if($errortips) $this->formValidator .= '$("#'.$field.'").formVa...
108wo
phpcms/modules/formguide/fields/textarea/form.inc.php
PHP
asf20
675
<?php $db->query("ALTER TABLE `$tablename` DROP `$field`"); ?>
108wo
phpcms/modules/formguide/fields/textarea/field_delete.inc.php
PHP
asf20
65
function text($field, $value, $fieldinfo) { return form::text($field, $field, $value, 'text', 15); }
108wo
phpcms/modules/formguide/fields/textarea/search_form.inc.php
PHP
asf20
110
<?php defined('IN_ADMIN') or exit('No permission resources.'); $field_type = 'mediumtext'; //字段数据库类型 $field_allow_index = 0; //是否允许建立索引 $field_minlength = 0; //字符长度默认最小值 $field_maxlength = ''; //字符长度默认最大值 $field_allow_search = 0; //作为搜索条件 $field_allow_isunique = 0; //是否允许值唯一 ?>
108wo
phpcms/modules/formguide/fields/textarea/config.inc.php
PHP
asf20
390
<table cellpadding="2" cellspacing="1" width="98%"> <tr> <td width="100">文本域宽度</td> <td><input type="text" name="setting[width]" value="100%" size="10" class="input-text" >%</td> </tr> <tr> <td>文本域高度</td> <td><input type="text" name="setting[height]" value="46" size="10" class="in...
108wo
phpcms/modules/formguide/fields/textarea/field_add_form.inc.php
Hack
asf20
762
function text($field, $value) { return $value === '' ? '' : " `$field` LIKE '%$value%' "; }
108wo
phpcms/modules/formguide/fields/textarea/search.inc.php
PHP
asf20
101
<?php defined('IN_PHPCMS') or exit('No permission resources.');?> <table cellpadding="2" cellspacing="1" width="98%"> <tr> <td width="100">文本域宽度</td> <td><input type="text" name="setting[width]" value="<?php echo $setting['width'];?>" size="10" class="input-text" > %</td> </tr> <tr> <td...
108wo
phpcms/modules/formguide/fields/textarea/field_edit_form.inc.php
PHP
asf20
1,029
function textarea($field, $value) { if(!$this->fields[$field]['enablehtml']) $value = strip_tags($value); return $value; }
108wo
phpcms/modules/formguide/fields/textarea/input.inc.php
PHP
asf20
133
function number($field, $value, $fieldinfo) { extract($fieldinfo); if(!$value) $value = $defaultvalue; $errortips = $this->fields[$field]['errortips']; if($errortips) $this->formValidator .= '$("#'.$field.'").formValidator({onshow:"'.$errortips.'",onfocus:"'.$errortips.'"}).inputValidator({min:'.$minnumber...
108wo
phpcms/modules/formguide/fields/number/form.inc.php
PHP
asf20
603
<?php defined('IN_ADMIN') or exit('No permission resources.'); $field_type = 'number'; //字段数据库类型 $field_allow_index = 1; //是否允许建立索引 $field_minlength = 0; //字符长度默认最小值 $field_maxlength = ''; //字符长度默认最大值 $field_allow_search = 1; //作为搜索条件 $field_allow_isunique = 1; //是否允许值唯一 ?>
108wo
phpcms/modules/formguide/fields/number/config.inc.php
PHP
asf20
384
<table cellpadding="2" cellspacing="1" width="98%"> <tr> <td width="100">取值范围</td> <td><input type="text" name="setting[minnumber]" value="1" size="5" class="input-text"> - <input type="text" name="setting[maxnumber]" value="" size="5" class="input-text"></td> </tr> <tr> <td>小数位数:</td> ...
108wo
phpcms/modules/formguide/fields/number/field_add_form.inc.php
PHP
asf20
849
<?php defined('IN_PHPCMS') or exit('No permission resources.');?> <table cellpadding="2" cellspacing="1" width="98%"> <tr> <td width="100">取值范围</td> <td><input type="text" name="setting[minnumber]" value="<?php echo $setting['minnumber'];?>" size="5" class="input-text"> - <input type="text" name="sett...
108wo
phpcms/modules/formguide/fields/number/field_edit_form.inc.php
PHP
asf20
1,582
function editor($field, $value, $fieldinfo) { //是否允许用户上传附件 ,后台管理员开启此功能 extract($fieldinfo); extract(string2array($setting)); $allowupload = defined('IN_ADMIN') ? 1 : 0; if(!$value) $value = $defaultvalue; if($minlength || $pattern) $allow_empty = ''; if($errortips) $this->formValidator .= '$("#'.$...
108wo
phpcms/modules/formguide/fields/editor/form.inc.php
PHP
asf20
700
<?php defined('IN_ADMIN') or exit('No permission resources.'); $field_type = 'mediumtext'; //字段数据库类型 $field_allow_index = 0; //是否允许建立索引 $field_minlength = 0; //字符长度默认最小值 $field_maxlength = ''; //字符长度默认最大值 $field_allow_search = 0; //作为搜索条件 $field_allow_isunique = 0; //是否允许值唯一 ?>
108wo
phpcms/modules/formguide/fields/editor/config.inc.php
PHP
asf20
388
<table cellpadding="2" cellspacing="1" width="98%"> <tr> <td width="100">编辑器样式:</td> <td><input type="radio" name="setting[toolbar]" value="basic" checked> 简洁型 <input type="radio" name="setting[toolbar]" value="full"> 标准型 </td> </tr> <tr> <td>默认值:</td> <td><textarea name="setting[...
108wo
phpcms/modules/formguide/fields/editor/field_add_form.inc.php
Hack
asf20
475
<?php defined('IN_PHPCMS') or exit('No permission resources.');?> <table cellpadding="2" cellspacing="1" width="98%"> <tr> <td width="100">编辑器样式:</td> <td><input type="radio" name="setting[toolbar]" value="basic" <?php if($setting['toolbar']=='basic') echo 'checked';?>> <?php echo $setting['toolbar'];...
108wo
phpcms/modules/formguide/fields/editor/field_edit_form.inc.php
PHP
asf20
718
function editor($field, $value) { return $value; }
108wo
phpcms/modules/formguide/fields/editor/output.inc.php
PHP
asf20
58
function editor($field, $value) { $setting = string2array($this->fields[$field]['setting']); $enablesaveimage = $setting['enablesaveimage']; $site_setting = string2array($this->site_config['setting']); $watermark_enable = intval($site_setting['watermark_enable']); $value = $this->attachment->download('c...
108wo
phpcms/modules/formguide/fields/editor/input.inc.php
PHP
asf20
379
function image($field, $value, $fieldinfo) { $setting = string2array($fieldinfo['setting']); extract($setting); if(!defined('IMAGES_INIT')) { $str = '<script type="text/javascript" src="'.JS_PATH.'swfupload/swf2ckeditor.js"></script><script language="javascript" type="text/javascript" src="'.JS_PATH.'cont...
108wo
phpcms/modules/formguide/fields/image/form.inc.php
Hack
asf20
1,466
<?php defined('IN_ADMIN') or exit('No permission resources.'); $field_type = 'varchar'; //字段数据库类型 $field_allow_index = 0; //是否允许建立索引 $field_minlength = 0; //字符长度默认最小值 $field_maxlength = ''; //字符长度默认最大值 $field_allow_search = 0; //作为搜索条件 $field_allow_isunique = 0; //是否允许值唯一 ?>
108wo
phpcms/modules/formguide/fields/image/config.inc.php
PHP
asf20
385
<table cellpadding="2" cellspacing="1" width="98%"> <tr> <td width="100">文本框长度</td> <td><input type="text" name="setting[size]" size="10" class="input-text"></td> </tr> <tr> <td>默认值</td> <td><input type="text" name="setting[defaultvalue]" size="40" class="input-text"></td> ...
108wo
phpcms/modules/formguide/fields/image/field_add_form.inc.php
Hack
asf20
1,192
<?php defined('IN_PHPCMS') or exit('No permission resources.');?> <table cellpadding="2" cellspacing="1" width="98%"> <tr> <td width="100">文本框长度</td> <td><input type="text" name="setting[size]" value="<?php echo $setting['size'];?>" size="10" class="input-text"></td> </tr> <tr> <td>默认值<...
108wo
phpcms/modules/formguide/fields/image/field_edit_form.inc.php
PHP
asf20
1,880
<?php class formguide_form { var $formid; var $fields; var $id; var $formValidator; function __construct($formid, $no_allowed = 0) { $this->formid = $formid; $this->no_allowed = $no_allowed ? 'disabled=""' : ''; $this->fields = getcache('formguide_field_'.$formid, 'model'); $this->siteid = g...
108wo
phpcms/modules/formguide/fields/formguide_form.class.php
PHP
asf20
1,248
<?php if(!$maxlength) $maxlength = 255; $maxlength = min($maxlength, 255); $fieldtype = $issystem ? 'CHAR' : 'VARCHAR'; $sql = "ALTER TABLE `$tablename` CHANGE `$field` `$field` $fieldtype( $maxlength ) NOT NULL DEFAULT '$defaultvalue'"; $db->query($sql); ?>
108wo
phpcms/modules/formguide/fields/text/field_edit.inc.php
PHP
asf20
265
function text($field, $value, $fieldinfo) { extract($fieldinfo); $setting = string2array($setting); $size = $setting['size']; if(!$value) $value = $defaultvalue; $type = $ispassword ? 'password' : 'text'; $errortips = $this->fields[$field]['errortips']; $regexp = $pattern ? '.regexValidator({regex...
108wo
phpcms/modules/formguide/fields/text/form.inc.php
PHP
asf20
788
<?php $db->query("ALTER TABLE `$tablename` DROP `$field`"); ?>
108wo
phpcms/modules/formguide/fields/text/field_delete.inc.php
PHP
asf20
65
<?php defined('IN_ADMIN') or exit('No permission resources.'); $field_type = 'varchar'; //字段数据库类型 $field_allow_index = 1; //是否允许建立索引 $field_minlength = 1; //字符长度默认最小值 $field_maxlength = ''; //字符长度默认最大值 $field_allow_search = 1; //作为搜索条件 $field_allow_isunique = 1; //是否允许值唯一 ?>
108wo
phpcms/modules/formguide/fields/text/config.inc.php
PHP
asf20
385
<table cellpadding="2" cellspacing="1" width="98%"> <tr> <td width="100">文本框长度</td> <td><input type="text" name="setting[size]" value="50" size="10" class="input-text"></td> </tr> <tr> <td>默认值</td> <td><input type="text" name="setting[defaultvalue]" value="" size="40" class="input...
108wo
phpcms/modules/formguide/fields/text/field_add_form.inc.php
Hack
asf20
571
<?php defined('IN_PHPCMS') or exit('No permission resources.');?> <table cellpadding="2" cellspacing="1" width="98%"> <tr> <td width="100">文本框长度</td> <td><input type="text" name="setting[size]" value="<?php echo $setting['size'];?>" size="10" class="input-text"></td> </tr> <tr> <td>默认值<...
108wo
phpcms/modules/formguide/fields/text/field_edit_form.inc.php
PHP
asf20
799
<?php class formguide_output { var $fields; var $data; function __construct($formid) { $this->formid = $formid; $this->fields = getcache('formguide_field_'.$formid, 'model'); $this->siteid = get_siteid(); } function get($data) { $this->data = $data; $this->id = $data['id']; $info = arr...
108wo
phpcms/modules/formguide/fields/formguide_output.class.php
PHP
asf20
642
function box($field, $value, $fieldinfo) { $setting = string2array($fieldinfo['setting']); if($value=='') $value = $this->fields[$field]['defaultvalue']; $options = explode("\n",$this->fields[$field]['options']); foreach($options as $_k) { $v = explode("|",$_k); $k = trim($v[1]); $option[$k] = ...
108wo
phpcms/modules/formguide/fields/box/form.inc.php
PHP
asf20
1,089
<?php defined('IN_ADMIN') or exit('No permission resources.'); $field_type = 'int'; //字段数据库类型 $field_allow_index = 1; //是否允许建立索引 $field_minlength = 1; //字符长度默认最小值 $field_maxlength = ''; //字符长度默认最大值 $field_allow_search = 1; //作为搜索条件 $field_allow_isunique = 0; //是否允许值唯一 ?>
108wo
phpcms/modules/formguide/fields/box/config.inc.php
PHP
asf20
381
<table cellpadding="2" cellspacing="1" width="98%"> <tr> <td width="100">选项列表</td> <td><textarea name="setting[options]" rows="2" cols="20" id="options" style="height:100px;width:400px;">选项名称1|选项值1</textarea></td> </tr> <tr> <td>选项类型</td> <td> <input type="radio" name="setting...
108wo
phpcms/modules/formguide/fields/box/field_add_form.inc.php
Hack
asf20
2,449
<?php defined('IN_PHPCMS') or exit('No permission resources.');?> <table cellpadding="2" cellspacing="1" width="98%"> <tr> <td width="100">选项列表</td> <td><textarea name="setting[options]" rows="2" cols="20" id="options" style="height:100px;width:200px;"><?php echo $setting['options'];?></textarea></td>...
108wo
phpcms/modules/formguide/fields/box/field_edit_form.inc.php
PHP
asf20
3,293
function box($field, $value) { extract(string2array($this->fields[$field]['setting'])); if($outputtype) { return $value; } else { $options = explode("\n",$this->fields[$field]['options']); foreach($options as $_k) { $v = explode("|",$_k); $k = trim($v[1]); $option[$k] = $v[0]; }...
108wo
phpcms/modules/formguide/fields/box/output.inc.php
PHP
asf20
885
function box($field, $value) { if($this->fields[$field]['boxtype'] == 'checkbox') { if(!is_array($value) || empty($value)) return false; array_shift($value); $value = implode(',', $value); return $value; } elseif($this->fields[$field]['boxtype'] == 'multiple') { if(is_array($value) && count($...
108wo
phpcms/modules/formguide/fields/box/input.inc.php
PHP
asf20
435
<?php defined('IN_ADMIN') or exit('No permission resources.'); $this->db->query("ALTER TABLE `$tablename` DROP `$field`"); ?>
108wo
phpcms/modules/formguide/fields/delete.sql.php
PHP
asf20
130
<?php defined('IN_ADMIN') or exit('No permission resources.'); $defaultvalue = isset($_POST['setting']['defaultvalue']) ? $_POST['setting']['defaultvalue'] : ''; $minnumber = isset($_POST['setting']['minnumber']) ? $_POST['setting']['minnumber'] : 1; $decimaldigits = isset($_POST['setting']['decimaldigits']) ? $_PO...
108wo
phpcms/modules/formguide/fields/edit.sql.php
PHP
asf20
3,305
function datetime($field, $value, $fieldinfo) { extract(string2array($fieldinfo['setting'])); $isdatetime = 0; if($fieldtype=='int') { if(!$value) $value = SYS_TIME; $format_txt = $format == 'm-d' ? 'm-d' : $format; $value = date($format_txt,$value); $isdatetime = strlen($format) > 6 ? 1 : 0; ...
108wo
phpcms/modules/formguide/fields/datetime/form.inc.php
PHP
asf20
448
<?php defined('IN_ADMIN') or exit('No permission resources.'); $field_type = 'int'; //字段数据库类型 $field_allow_index = 1; //是否允许建立索引 $field_minlength = 1; //字符长度默认最小值 $field_maxlength = ''; //字符长度默认最大值 $field_allow_search = 1; //作为搜索条件 $field_allow_isunique = 0; //是否允许值唯一 ?>
108wo
phpcms/modules/formguide/fields/datetime/config.inc.php
PHP
asf20
381
<table cellpadding="2" cellspacing="1" bgcolor="#ffffff"> <tr> <td><strong>时间格式:</strong></td> <td> <input type="radio" name="setting[fieldtype]" value="date" checked>日期(<?php echo date('Y-m-d')?>)<br /> <input type="radio" name="setting[fieldtype]" value="datetime">日期+时间(<?php echo date('Y-m-d...
108wo
phpcms/modules/formguide/fields/datetime/field_add_form.inc.php
PHP
asf20
964
<?php defined('IN_PHPCMS') or exit('No permission resources.');?> <table cellpadding="2" cellspacing="1" bgcolor="#ffffff"> <tr> <td><strong>时间格式:</strong></td> <td> <input type="radio" name="setting[fieldtype]" value="date" <?php if($setting['fieldtype']=='date') echo 'checked';?>>日期(<?=date('Y-m...
108wo
phpcms/modules/formguide/fields/datetime/field_edit_form.inc.php
PHP
asf20
1,420
function datetime($field, $value) { $setting = string2array($this->fields[$field]['setting']); extract($setting); if($fieldtype=='date' || $fieldtype=='datetime') { return $value; } else { $format_txt = $format; } if(strlen($format_txt)<6) { $isdatetime = 0; } else { $isdatetime = ...
108wo
phpcms/modules/formguide/fields/datetime/output.inc.php
PHP
asf20
423
function datetime($field, $value) { $setting = string2array($this->fields[$field]['setting']); if($setting['fieldtype']=='int') { $value = strtotime($value); } return $value; }
108wo
phpcms/modules/formguide/fields/datetime/input.inc.php
PHP
asf20
197
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); ?>
108wo
phpcms/modules/formguide/install/model.php
PHP
asf20
106
{template "content","header"} <!--main--> <div class="main"> <div class="col-left"> <div class="crumbs"><a href="{siteurl($siteid)}">首页</a><span> > </span>表单向导 列表</div> <ul class="list lh24 f14"> {loop $datas $r} <li><span class="rt">{date('Y-m-d H:i:s',$r[addtime])}</span>·<a href="{APP_PATH}in...
108wo
phpcms/modules/formguide/install/templates/index.html
HTML
asf20
1,506
{template "content","header"} <link href="{CSS_PATH}table_form.css" rel="stylesheet" type="text/css" /> <link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" /> <div class="main"> <div class="col-left"> <div class="crumbs"><a href="{siteurl($siteid)}">首页</a><span> &gt; </span><a href="{APP_PAT...
108wo
phpcms/modules/formguide/install/templates/show.html
HTML
asf20
4,146
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script> <link href="{CSS_PATH}table_form.css" rel="stylesheet" type="text/css" /> <link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" /> <div class="box"> <h5>表单向导</h5> <div class="content"> <form method="po...
108wo
phpcms/modules/formguide/install/templates/show_js.html
HTML
asf20
1,429
<?php error_reporting(E_ALL); defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); $parentid = $menu_db->insert(array('name'=>'formguide', 'parentid'=>29, 'm'=>'formguide', 'c'=>'formguide', 'a'=>'init', 'data'=>'', 'listorder'=>0, 'display'=>'1'), true); $menu_db->insert(a...
108wo
phpcms/modules/formguide/install/extention.inc.php
PHP
asf20
2,241
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); $module = 'formguide'; $modulename = '表单向导模块'; $introduce = '独立模块'; $author = 'phpcms Team'; $authorsite = 'http://www.phpcms.cn'; $authoremail = ''; ?>
108wo
phpcms/modules/formguide/install/config.inc.php
PHP
asf20
282
<?php /*Language Format: Add a new file(.lang.php) with your module name at /phpcms/languages/ translation save at the array:$LANG */ //add field $LANG['formguide'] = '表单向导'; $LANG['input_form_title'] = '请输入表单向导名称!'; $LANG['title_min_3_chars'] = '表单向导至少3个汉字以上'; $LANG['right'] = '输入正确!'; $LAN...
108wo
phpcms/modules/formguide/install/languages/zh-cn/formguide.lang.php
PHP
asf20
6,942
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('UNINSTALL') or exit('Access Denied'); ?>
108wo
phpcms/modules/cnzz/uninstall/extention.inc.php
PHP
asf20
106
<?php defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_app_class('admin', 'admin', 0); class index extends admin { private $config; public function __construct() { $this->config = getcache('cnzz', 'commons'); } public function init() { if (empty($this->config)) { showmessa...
108wo
phpcms/modules/cnzz/index.php
PHP
asf20
1,250
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); return false; ?>
108wo
phpcms/modules/cnzz/install/model.php
PHP
asf20
120
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); $menu_db->insert(array('name'=>'cnzz', 'parentid'=>'977', 'm'=>'cnzz', 'c'=>'index', 'a'=>'init', 'data'=>'', 'listorder'=>16, 'display'=>'1')); $language = array('cnzz'=>'CNZZ统计'); ?>
108wo
phpcms/modules/cnzz/install/extention.inc.php
PHP
asf20
293
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); $module = 'cnzz'; $modulename = 'cnzz统计'; $introduce = '由国内领先的统计提供商cnzz,提供的全景统计。'; $author = 'phpcms team'; $authorsite = 'http://www.phpcms.cn'; $authoremail = ''; ?>
108wo
phpcms/modules/cnzz/install/config.inc.php
PHP
asf20
319
<?php $LANG['reg_msg'] = '您还的网站还没有申请CNZZ统计,是否现在申请?<br><br><input type="button" onclick="location.href=\'?m=cnzz&c=index&a=public_regcnzz\'" value=" 马 上 开 通 "> <input type="button" onclick="history.back();" value=" 暂 不 开 通 ">'; $LANG['application_fails'] = '申请失败,请稍候再试。'; $LANG['donot_connect_server'] = '无法成功连接cnzz服务器...
108wo
phpcms/modules/cnzz/install/languages/zh-cn/cnzz.lang.php
PHP
asf20
475
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('UNINSTALL') or exit('Access Denied'); return array('wap'); ?>
108wo
phpcms/modules/wap/uninstall/model.php
PHP
asf20
130
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('UNINSTALL') or exit('Access Denied'); ?>
108wo
phpcms/modules/wap/uninstall/extention.inc.php
PHP
asf20
108
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <div class="pad-10"> <form action="?m=wap&c=wap_admin&a=add" method="post" id="myform"> <input type="hidden" value='<?php echo $siteid?>' name="siteid"> <fieldset> <legend><?php echo L('basic_confi...
108wo
phpcms/modules/wap/templates/m_add.tpl.php
PHP
asf20
3,431
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header','admin');?> <div class="pad-lr-10"> <form name="myform2" action="?m=wap&c=wap_admin&a=type_manage&siteid=<?php echo $siteid?>" method="post"> <table width="100%" cellspacing="0" class="search-form"> <tbody> <tr...
108wo
phpcms/modules/wap/templates/type_manage.tpl.php
PHP
asf20
2,864
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header','admin');?> <div class="pad-lr-10"> <div class="table-list"> <table width="100%" cellspacing="0"> <thead> <tr> <th width="10%" align="left">SITEID</th> <th width="">...
108wo
phpcms/modules/wap/templates/m_list.tpl.php
PHP
asf20
2,247
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <div class="pad-10"> <form action="?m=wap&c=wap_admin&a=edit" method="post" id="myform"> <input type="hidden" value='<?php echo $siteid?>' name="siteid"> <fieldset> <legend><?php echo L('basic_conf...
108wo
phpcms/modules/wap/templates/m_edit.tpl.php
PHP
asf20
3,630
<?php defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_app_func('global'); pc_base::load_sys_class('format', '', 0); class index { function __construct() { $this->db = pc_base::load_model('content_model'); $this->siteid = isset($_GET['siteid']) && (intval($_GET['siteid']) > 0) ? in...
108wo
phpcms/modules/wap/index.php
PHP
asf20
10,711
<?php defined('IN_PHPCMS') or exit('No permission resources.'); class wap_url{ private $urlrules,$categorys,$html_root; public function __construct() { self::set_siteid(); } /** * WAP内容页链接 */ public function show($id, $page = 0, $catid = 0, $typeid = 0, $prefix = '',$data = '',$action = 'edit') { ...
108wo
phpcms/modules/wap/classes/wap_url.class.php
PHP
asf20
1,113
<?php class wap_tag { //数据库连接 private $db; public function __construct() { $this->db = pc_base::load_model('content_model'); $this->position = pc_base::load_model('position_data_model'); } /** * 初始化模型 * @param $catid 栏目id */ public function set_modelid($catid) { $siteids = getcache('ca...
108wo
phpcms/modules/wap/classes/wap_tag.class.php
PHP
asf20
4,732
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); return array('wap'); ?>
108wo
phpcms/modules/wap/install/model.php
PHP
asf20
128
{template "wap","min_header"} <div class="wrap" id="hd"> <div class="adds">{wap_pos($typeid)}</div> <div> {loop $list $v} <a href="{show_url($v[catid],$v[id],$typeid)}" title="{$v['title']}">{str_cut($v['title'],26,'')}</a><br/> {/loop} </div> <div class="pages">{$pages}</div> {template "wap","min_footer"}
108wo
phpcms/modules/wap/install/templates/list.html
HTML
asf20
319
{template "wap","header"} <h2><a href="#" class="cat">焦点推荐</a>&nbsp;<span style="color:#999; font-size:12px; font-weight:100;">{date('Y-m-d',SYS_TIME)}</span></h2> <div> {pc:wap action="position" posid="12" order="listorder DESC" num="6"} {loop $data $r} <a href="{$r[url]}">{str_cut($r['title'],26,'')}</a><br/>...
108wo
phpcms/modules/wap/install/templates/index.html
HTML
asf20
976
{template "wap","min_header"} <div class="wrap" id="hd"> <div class="adds">{wap_pos($typeid)}</div> <h1>{$title}</h1> <div class="tm">作者:{$username}&nbsp;&nbsp;日期:{date('m-d',strtotime($inputtime))}<br/>来源:{$copyfrom}</div> <div class="content"> {if $pictureurl}{$pictureurl}<br>{$pages}{/if} {$content} </div> ...
108wo
phpcms/modules/wap/install/templates/show.html
HTML
asf20
1,465
<div class="tc"><a href="#hd"><img src="{IMG_PATH}wap/top.gif" alt="" width="46" height="16" /></a></div> <div class="ft"> <a href="{WAP_SITEURL}">{$WAP['sitename']}</a>-<a href="{APP_PATH}index.php?m=wap&amp;c=index&amp;a=maps">导航</a> </div> </div> </body> </html>
108wo
phpcms/modules/wap/install/templates/footer.html
HTML
asf20
292
{php wmlHeader();} <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Cache-Control" content="no-cache"/> <...
108wo
phpcms/modules/wap/install/templates/min_header.html
HTML
asf20
2,024
{template "wap","min_header"} <div class="wrap" id="hd"> <div class="content"> <img src="{$new_url}"><br> 图片下载选择: <a href="{bigimg_url($url,320)}">高清(320x480)</a>.<a href="{bigimg_url($url,240)}">大(240x320)</a>.<a href="{bigimg_url($url,176)}">中(176x220)</a>.<a href="{bigimg_url($url,128)}">小(128x160)</a> </div> ...
108wo
phpcms/modules/wap/install/templates/big_image.html
HTML
asf20
376
<div class="catlist"> {loop subtype($TYPE[$typeid]['parentid']) $s}<a href="{list_url($s[typeid])}">{$s[typename]}</a>|{if $n%4==0}<br/>{/if}{/loop} </div> <div class="tc"><a href="#hd"><img src="{IMG_PATH}wap/top.gif" alt="" width="46" height="16" /></a></div> <div class="b_adds" id="hd">{wap_p...
108wo
phpcms/modules/wap/install/templates/min_footer.html
HTML
asf20
521
{template "wap","header"} <div class="adds" id="hd">{wap_pos($typeid)}</div> {loop subtype($typeid) $type} {pc:wap action="lists" typeid="$type[typeid]" num="10" order="id DESC" return="info"} <h2><a href="{list_url($type['typeid'])}" class="cat">{$type['typename']}</a></h2> <div> {loop $info $v} <a href="...
108wo
phpcms/modules/wap/install/templates/category.html
HTML
asf20
488
{template "wap","min_header"} <body> <div class="wrap"> <div class="adds" id="hd">{wap_pos($typeid)}</div> <h1><a href="{show_url($catid,$contentid,$typeid)}">{$title}</a></h1> <div class="b_adds">网友评论:</div> {pc:comment action="lists" commentid="$commentid" siteid="$siteid" page="$_GET[page]" hot="$hot" num...
108wo
phpcms/modules/wap/install/templates/comment_list.html
HTML
asf20
653
{php wmlHeader();} <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Cache-Control" content="no-cache"/> <...
108wo
phpcms/modules/wap/install/templates/header.html
HTML
asf20
2,083
{template "wap","min_header"} <div class="wrap"> <div class="adds" id="hd">{$WAP['sitename']} - 导航</div> <div class="cts"> {php $i=1} {loop subtype(0) $s} <a href="{list_url($s[typeid])}">[{$s[typename]}]</a> {loop subtype($s[typeid]) $r} <a href="{list_url($r[typeid])}">{$r[typename]}</a> {i...
108wo
phpcms/modules/wap/install/templates/maps.html
HTML
asf20
438
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); $parentid = $menu_db->insert(array('name'=>'wap', 'parentid'=>29, 'm'=>'wap', 'c'=>'wap_admin', 'a'=>'init', 'data'=>'', 'listorder'=>0, 'display'=>'1'), true); $menu_db->insert(array('name'=>'wap_add', 'parentid'=>$...
108wo
phpcms/modules/wap/install/extention.inc.php
PHP
asf20
1,451