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
class template_guest_list extends theme
{
protected function head()
{
?>
<link type="text/css" rel="stylesheet" href="templates/project/css/project.css">
<script type="text/javascript" language="javascript" src="templates/project/js/project.js"></script>
<?php
}
protected function center()
... | 1024i | 1024 intelligence/templates/project/guest_list.php | PHP | asf20 | 2,669 |
<?php
class template_guest_detail extends theme
{
protected function head()
{
?>
<link type="text/css" rel="stylesheet" href="templates/project/css/project.css">
<script type="text/javascript" language="javascript" src="templates/project/js/project.js"></script>
<?php
}
protected function center(... | 1024i | 1024 intelligence/templates/project/customer_detail.php | PHP | asf20 | 5,429 |
.progress{width:100px; height:12px; padding-left:5px; background:url("../images/step.gif") 0% -72px;}
.progress .bg{width:100px; height:12px; background:url("../images/step.gif") 100% -12px; text-align:left;}
.progress .bar{width:100px; height:12px; background:url("../images/step.gif") 100% -84px;}
.project-li... | 1024i | 1024 intelligence/templates/project/css/project.css | CSS | asf20 | 1,912 |
<?php
class template_guest_detail extends theme
{
protected function head()
{
?>
<link type="text/css" rel="stylesheet" href="templates/project/css/project.css">
<script type="text/javascript" language="javascript" src="templates/project/js/project.js"></script>
<?php
}
protected function center(... | 1024i | 1024 intelligence/templates/project/guest_detail.php | PHP | asf20 | 6,240 |
<?php
class template_customer_list extends theme
{
protected function head()
{
?>
<link type="text/css" rel="stylesheet" href="templates/project/css/project.css">
<script type="text/javascript" language="javascript" src="templates/project/js/project.js"></script>
<?php
}
protected function center... | 1024i | 1024 intelligence/templates/project/customer_list.php | PHP | asf20 | 2,731 |
<?php
class template_listing extends theme
{
protected function head()
{
?>
<link type="text/css" rel="stylesheet" href="templates/pricing/css/listing.css">
<script type="text/javascript" language="javascript" src="templates/pricing/js/listing.js"></script>
<?php
}
protected function center()
{... | 1024i | 1024 intelligence/templates/pricing/listing.php | PHP | asf20 | 2,418 |
$(function(){
$('.avatar, .help').each(function(){
var e = $(this);
if(e.attr("title")=="") return;
e.bt(e.attr("title"),
{
width: 300,
fill: 'white',
strokeStyle: '#999',
shrinkToFit: true,
hoverIntentOpts: {interval: 0,timeout: 0}
});
});
});
| 1024i | 1024 intelligence/templates/pricing/js/detail.js | JavaScript | asf20 | 295 |
$(function(){
$("#form-pricing").validate({
rules: {
name: {
required: true
},
customer_email: {
email: true
},
captcha: {
required: true,
minlength: 4,
maxlength: 4
}
},
messages: {
name: {
required: "请输入项目名"
},
customer_email: {
email... | 1024i | 1024 intelligence/templates/pricing/js/create.js | JavaScript | asf20 | 784 |
<?php
class template_create extends theme
{
protected function head()
{
?>
<script type="text/javascript" language="javascript" src="js/jquery.validate.pack.js"></script>
<link type="text/css" rel="stylesheet" href="templates/pricing/css/create.css">
<script type="text/javascript" language="javascript" ... | 1024i | 1024 intelligence/templates/pricing/create.php | PHP | asf20 | 5,131 |
<?php
class template_detail extends theme
{
protected function head()
{
?>
<!--[if IE]>
<script type="text/javascript" language="javascript" src="js/excanvas.compiled.js"></script>
<![endif]-->
<script type="text/javascript" language="javascript" src="js/jquery.bt.min.js"></script>
<link type="text/cs... | 1024i | 1024 intelligence/templates/pricing/detail.php | PHP | asf20 | 8,182 |
.pricings{padding:0 5px;}
.pricings table th{border-bottom:#eee 1px solid; font-size:12px;}
.pricings .row-0{background-color:#FFF;}
.pricings .row-1{background-color:#F8F8F8;} | 1024i | 1024 intelligence/templates/pricing/css/listing.css | CSS | asf20 | 179 |
.pricings{padding:0 5px;}
.pricings table th{border-bottom:#eee 1px solid; font-size:12px;}
.pricings .row-0{background-color:#FFF;}
.pricings .row-1{background-color:#F8F8F8;}
.edit-table td{padding:6px 4px;}
.edit-table .key{background-color:#F6F6F6; border-bottom:1px solid #E9E9E9; border-right:1px solid #E... | 1024i | 1024 intelligence/templates/pricing/css/create.css | CSS | asf20 | 584 |
.creater{float:left; width:100px;}
.creater .avatar{ text-align:center;width:96px; height:96px; padding:4px; background-color:#FFFFFF; border:#EEEEEE 1px solid;}
.creater .name{ text-align:center; padding:5px 0 2px 0;}
.creater .time{text-align:center; color:#AAA;}
.detail {float:right; width:590px; border-left:#... | 1024i | 1024 intelligence/templates/pricing/css/detail.css | CSS | asf20 | 1,248 |
<?php
class template_listing extends theme
{
protected function head()
{
?>
<script type="text/javascript" language="javascript" src="js/jquery.validate.pack.js"></script>
<link type="text/css" rel="stylesheet" href="templates/message/css/listing.css">
<script type="text/javascript" language="javascript... | 1024i | 1024 intelligence/templates/message/listing.php | PHP | asf20 | 4,606 |
$(function(){
$("#form-message").validate({
rules: {
name: {
required: true
},
title: {
required: true,
maxlength: 500
},
email: {
email: true
},
captcha: {
required: true,
minlength: 4,
maxlength: 4
}
},
messages: {
name: {
re... | 1024i | 1024 intelligence/templates/message/js/listing.js | JavaScript | asf20 | 3,105 |
.messages ul{ margin:0; padding:0;}
.messages li{list-style:none; margin:0; padding:10px 0 20px 0;}
.messages .creater{float:left; width:70px;}
.messages .creater .avatar{width:64px; height:64px; padding:3px; background-color:#FFFFFF; border:#EEEEEE 1px solid;}
.messages .creater .name{ text-align:center;color:... | 1024i | 1024 intelligence/templates/message/css/listing.css | CSS | asf20 | 1,333 |
<?php
class config_mail
{
public $from_mail = '1024i@163.com';
public $from_name = '1024 Intelligence';
public $charset = 'utf-8';
public $encoding = 'base64';
public $smtp = true;
public $smtp_host = 'smtp.163.com';
public $smtp_port = 25;
public $smtp_user = '1024i';
public $smtp_pass = '... | 1024i | 1024 intelligence/configs/mail.php | PHP | asf20 | 397 |
<?php
class config_db
{
public $db_host = 'localhost';
public $db_user = '1024i';
public $db_pass = '1024i_10241024';
public $db_name = '1024i';
}
?> | 1024i | 1024 intelligence/configs/db.php | PHP | asf20 | 165 |
<?php
class config_theme
{
public $name = 'default';
}
?> | 1024i | 1024 intelligence/configs/theme.php | PHP | asf20 | 64 |
<?php
class config_system
{
public $offline = false;
public $offline_message = '网站升级, 暂时无法访问。';
public $site_url = 'http://www.1024i.com/';
public $site_name = '1024 Intelligence 专业网站程序开发';
public $sef = true;
}
?> | 1024i | 1024 intelligence/configs/system.php | PHP | asf20 | 273 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>您查看的页面不存在</title>
</head>
<body>
<h1>您查看的页面不存在</h1>
<br>
请检... | 1024i | 1024 intelligence/404.html | HTML | asf20 | 604 |
<?php
define('BONE_ROOT', dirname(__FILE__) );
define( 'DS', DIRECTORY_SEPARATOR );
require( BONE_ROOT.DS.'system'.DS.'tool.php' );
require( BONE_ROOT.DS.'system'.DS.'bone.php' );
require( BONE_ROOT.DS.'system'.DS.'worker.php' );
$worker = new worker();
$worker->start();
$worker->work();
$worker->stop();
... | 1024i | 1024 intelligence/index.php | PHP | asf20 | 324 |
<?php
abstract class table
{
protected $table_name = '';
protected $table_key = '';
protected $error = '';
public function __construct($table_name, $table_key='id')
{
$this->table_name = $table_name;
$this->table_key = $table_key;
}
/*
绑定一个数据源, GET, POST, 或者一个数组, 对象
*/
public function bind($data)
{... | 1024i | 1024 intelligence/system/table.php | PHP | asf20 | 3,431 |
<?php
abstract class bone
{
public static $version = '1.2'; // 系统版本号
public static $tables = null; // 保存表实例
public static $controllers = null; // 保存控制器实例
public static $models = null; // 保存模型实例
public static $templates = null; // 保存模板实例
public static $configs = null; // 保存配置文件实例
public static ... | 1024i | 1024 intelligence/system/bone.php | PHP | asf20 | 6,469 |
<?php
abstract class model
{
protected $error = null;
public function set_error($error){$this->error=$error;}
public function get_error(){return $this->error;}
} | 1024i | 1024 intelligence/system/model.php | PHP | asf20 | 172 |
<?php
class database
{
static private $instance = null;
protected $error_num = 0; // 错误代码
protected $error_msg = ''; // 错误信息
protected $connection = null; // 数据库连接
protected $cursor = null; // 查询结果游标
// 构造函数 私有, 单件模式, 禁止用户创建实例
private function __construct()
{
$config = bone::get_config('db'... | 1024i | 1024 intelligence/system/database.php | PHP | asf20 | 5,079 |
<?php
abstract class menu
{
protected $menus = array();
protected $menu_tree = null;
public function __construct()
{
}
// 添加菜单项
public function add_menu($menu_id, $parent_id, $name, $controller, $task='', $param='', $url='')
{
if(array_key_exists($menu_id, $this->menus))
{
$menu = ... | 1024i | 1024 intelligence/system/menu.php | PHP | asf20 | 2,262 |
<?php
/*
* 获取 $_GET 传送的数据
*/
function get($parameter_name=null, $default_value=null, $convert_type='string', $escape=true)
{
return request($parameter_name, $default_value, 'get', $convert_type, $escape);
}
/*
* 获取 $_POST 传送的数据
*/
function post($parameter_name=null, $default_value=null, $convert_ty... | 1024i | 1024 intelligence/system/tool.php | PHP | asf20 | 4,362 |
<?php
class worker
{
public function start()
{
// 检查网站配置, 是否暂停服务
$config = bone::get_config('system');
if($config->offline)
{
exit($config->offline_message);
}
// 启动 session
bone::get_session();
// 调用自动运行文件
$dir = dir(BONE_ROOT.DS.'autorun');
while (($file = $dir->read()) ... | 1024i | 1024 intelligence/system/worker.php | PHP | asf20 | 805 |
<?php
class session
{
function __construct()
{
if (session_id())
{
session_unset();
session_destroy();
}
ini_set('session.save_handler', 'files');
ini_set('session.use_trans_sid', '0');
session_cache_limiter('none');
session_start();
header('P3P: CP="NOI ADM DEV PSAi COM NAV OU... | 1024i | 1024 intelligence/system/session.php | PHP | asf20 | 1,879 |
<?php
class user
{
public $id = 0;
public $username = '';
public $email = '';
public $name = '';
public $role = 0;
public $guest = 1;
public function is_customer()
{
return $this->role & USER_ROLE_CUSTOMER;
}
public function is_developer()
{
return $this->role & USER_ROLE_DEVELOPE... | 1024i | 1024 intelligence/system/user.php | PHP | asf20 | 495 |
<?php
class template
{
protected $title = ''; // 标题
protected $meta_keyword = ''; // meta
protected $meta_description = '';
protected $data = array(); // 数据
protected $pagination = null; // 分页类
protected $editor = false; // 编辑器是否已加载
// 网站界面布局 为 false 时表示没有该区域
protected $north = true; //... | 1024i | 1024 intelligence/system/template.php | PHP | asf20 | 4,101 |
<?php
abstract class library
{
protected $error = null;
public function set_error($error){$this->error=$error;}
public function get_error(){return $this->error;}
} | 1024i | 1024 intelligence/system/library.php | PHP | asf20 | 174 |
<?php
abstract class controller
{
protected $task = null; // 当前任务名
protected $data = null; // 保存 controller 数据
protected $ajax = null; // 保存 ajax 数据
public function __construct()
{
$session = bone::get_session();
if($session->has('controller.message'))
$this->data['controller.message'] = $se... | 1024i | 1024 intelligence/system/controller.php | PHP | asf20 | 1,402 |
<?php
class model_user extends model
{
// 登陆
public function login($username, $password, $rememberme = false)
{
$session = bone::get_session();
$ip = $_SERVER["REMOTE_ADDR"];
$times = $session->get( $ip );
if( !$times ) $times=0;
$times++;
if($times>10)
{
$this->set_error('系统检测到您... | 1024i | 1024 intelligence/models/user.php | PHP | asf20 | 6,963 |
<?php
$config = bone::get_config('system');
if($config->sef)
{
// 如果启用了搜索引擎优化, 则把网址按以下规则匹配
// {controller}-{task}-{param_name}-{param_value}-{param_name}-{param_value}.html
// 其中参数 {param_name}-{param_value} 值对不限数量
$uri = $_SERVER['REQUEST_URI'];
$start_pos = strripos($uri,'/')+1;
/*
if($start_... | 1024i | 1024 intelligence/autorun/sef.php | PHP | asf20 | 953 |
<?php
/*
@版本日期: 2010年5月30日
@著作权所有: Lou Barnes ( http://www.loubarnes.com )
获得使用本类库的许可, 您必须保留著作权声明信息.
报告漏洞,意见或建议, 请联系 Lou Barnes(iua1024@gmail.com) 或登陆 http://www.loubarnes.com
*/
class library_mail extends library
{
private $from_mail = null; // 发件邮箱
private $from_name = null; // 发件人
private $repl... | 1024i | 1024 intelligence/libraries/mail/mail.php | PHP | asf20 | 5,919 |
<?php
/*
@版本日期: 2011年4月3日
@著作权所有: 1024 intelligence ( http://www.1024i.com )
获得使用本类库的许可, 您必须保留著作权声明信息.
报告漏洞,意见或建议, 请联系 Lou Barnes(iua1024@gmail.com)
*/
class library_captcha extends library
{
private $image; // 画布
private $width; // 宽度
private $height; // 高度
private $font_family; // 字体
... | 1024i | 1024 intelligence/libraries/captcha/captcha.php | PHP | asf20 | 3,999 |
<?php
/*
@版本日期: 2010年08月28日
@著作权所有: Lou Barnes ( http://www.loubarnes.com )
获得使用本类库的许可, 您必须保留著作权声明信息.
报告漏洞,意见或建议, 请联系 Lou Barnes(iua1024@gmail.com) 或登陆 http://www.loubarnes.com
*/
class library_fso extends library
{
// 构造函数
public function __construct(){}
// 析构函数
public function __destruct()... | 1024i | 1024 intelligence/libraries/fso/fso.php | PHP | asf20 | 1,892 |
// 加载时动画
var g_sLoadingImage = '<img src="../images/loading.gif" alt="处理中..." align="absmiddle" /> ';
$(function(){
$.ajaxSetup({cache: false});
var ajaxLoader = $('<div id="ajax-loader">'+g_sLoadingImage+' 处理中...</div>').appendTo("body").hide();
$('#ajax-loader').ajaxStart(function(){ajaxLoader.fadeIn(200)... | 1024i | 1024 intelligence/admin/js/global.js | JavaScript | asf20 | 437 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'menu'.DS.'menu.php';
class template_listing extends template_menu
{
protected function head()
{
$menu_list = $this->get('menu_list');
?>
<script type="text/javascript" language="javascript" src="templates/menu/js/listing.js"></script>
<script... | 1024i | 1024 intelligence/admin/templates/menu/listing.php | PHP | asf20 | 4,972 |
/*
@最初版本开发日期: 2010年08月19日
@著作权所有: Lou Barnes ( http://www.loubarnes.com )
报告漏洞,意见或建议, 请联系 Lou Barnes(iua1024@gmail.com) 或登陆 http://www.loubarnes.com
*/
// 为新添加的节点分配临时ID
var g_iNewMenuID = 0;
$(function(){
updateOrderIcon();
});
// 添加菜单
function addSubMenu(iMenuID)
{
if(g_iNewMenuID==0)
{
... | 1024i | 1024 intelligence/admin/templates/menu/js/listing.js | JavaScript | asf20 | 13,549 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'menu'.DS.'menu.php';
class template_group_listing extends template_menu
{
protected function center()
{
$group_list = $this->get('group_list');
$this->toolbar();
?>
<div class="box">
<div class="box-tl"><div class="box-tr"><div clas... | 1024i | 1024 intelligence/admin/templates/menu/group_listing.php | PHP | asf20 | 1,999 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'menu'.DS.'menu.php';
class template_edit extends template_menu
{
protected function center()
{
$group = $this->get('group');
$menu = $this->get('menu');
$this->toolbar();
?>
<div class="box">
<div class="box-tl"><div class="box-t... | 1024i | 1024 intelligence/admin/templates/menu/edit.php | PHP | asf20 | 2,010 |
<?php
class template_menu extends theme
{
protected function toolbar()
{
$group_list = $this->get('group_list');
?>
<div class="box">
<div class="box-tl"><div class="box-tr"><div class="box-tm"></div></div></div>
<div class="box-m">
<div class="toobar">
<?php
foreach($group_list as $g... | 1024i | 1024 intelligence/admin/templates/menu/menu.php | PHP | asf20 | 676 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'menu'.DS.'menu.php';
class template_group_edit extends template_menu
{
protected function center()
{
$group = $this->get('group');
$this->toolbar();
?>
<div class="box">
<div class="box-tl"><div class="box-tr"><div class="box-tm"></... | 1024i | 1024 intelligence/admin/templates/menu/group_edit.php | PHP | asf20 | 2,194 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'config'.DS.'config.php';
class template_config_mail_test extends template_config
{
protected function center()
{
$this->toolbar();
$config = $this->get('config');
?>
<div class="box">
<div class="box-tl"><div class="box-tr"><div c... | 1024i | 1024 intelligence/admin/templates/config/config_mail_test.php | PHP | asf20 | 1,383 |
<?php
class template_config extends theme
{
protected function toolbar()
{
?>
<div class="box">
<div class="box-tl"><div class="box-tr"><div class="box-tm"></div></div></div>
<div class="box-m">
<div class="toobar">
<a href="./?controller=config&task=config_system">配置系统参数</a> | ... | 1024i | 1024 intelligence/admin/templates/config/config.php | PHP | asf20 | 557 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'config'.DS.'config.php';
class template_config_mail extends template_config
{
protected function center()
{
$this->toolbar();
$config = $this->get('config');
?>
<div class="box">
<div class="box-tl"><div class="box-tr"><div class="b... | 1024i | 1024 intelligence/admin/templates/config/config_mail.php | PHP | asf20 | 2,694 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'config'.DS.'config.php';
class template_config_system extends template_config
{
protected function center()
{
$this->toolbar();
$config = $this->get('config');
?>
<div class="box">
<div class="box-tl"><div class="box-tr"><div class=... | 1024i | 1024 intelligence/admin/templates/config/config_system.php | PHP | asf20 | 2,109 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'user'.DS.'user.php';
class template_listing extends template_user
{
protected function head()
{
?>
<script type="text/javascript" language="javascript" src="../js/pagination.class.js"></script>
<link type="text/css" rel="stylesheet" href="templ... | 1024i | 1024 intelligence/admin/templates/user/listing.php | PHP | asf20 | 1,565 |
function chkForm(n)
{
var e;
e = document.getElementById("username");
if(e.value=="")
{
alert("请输入用户名");
e.focus();
return false;
}
e = document.getElementById("email");
if(e.value=="")
{
alert("请输入邮箱");
e.focus();
return false;
}
e = document.getElementById("password1")... | 1024i | 1024 intelligence/admin/templates/user/js/edit.js | JavaScript | asf20 | 630 |
$(function(){
pagination.setNavUrl('./?controller=user&task=ajax_listing');
pagination.setDataUrl('./?controller=user&task=ajax_listing_data');
pagination.setLimit(20); // 每页显示的记录条数
pagination.setUpdateNavFn(function(){
var s = '';
if(pagination.getTotal()>0)
{
s += '<div class="pag... | 1024i | 1024 intelligence/admin/templates/user/js/listing.js | JavaScript | asf20 | 5,028 |
$(function(){
$('#ajax-loader').remove();
$('#input-username,#input-password').keypress(function(e){
if(e.which==13) login();
});
});
function chkForm()
{
var e;
e = document.getElementById("input-username");
if(e.value=="")
{
$("#login-msg").attr("class", "message-error").html("用户名不能为空... | 1024i | 1024 intelligence/admin/templates/user/js/login.js | JavaScript | asf20 | 1,190 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'user'.DS.'user.php';
class template_edit extends template_user
{
protected function head()
{
?>
<script type="text/javascript" language="javascript" src="templates/user/js/edit.js"></script>
<?php
}
protected function center()
{
... | 1024i | 1024 intelligence/admin/templates/user/edit.php | PHP | asf20 | 2,535 |
<?php
class template_user extends theme
{
protected function toolbar()
{
?>
<div class="box">
<div class="box-tl"><div class="box-tr"><div class="box-tm"></div></div></div>
<div class="box-m">
<div class="toobar">
<a href="./?controller=user&task=listing">用户列表</a> |
<a ... | 1024i | 1024 intelligence/admin/templates/user/user.php | PHP | asf20 | 536 |
<?php
class template_dashboard extends theme
{
protected function center()
{
?>
后台管理首页
<?php
}
}
?> | 1024i | 1024 intelligence/admin/templates/user/dashboard.php | PHP | asf20 | 140 |
<?php
class template_login extends theme
{
public function __construct()
{
$this->north = false; //顶部
$this->south = false; //底部
}
protected function head()
{
?>
<link rel="stylesheet" href="templates/user/css/login.css">
<script type="text/javascript" language="javascript" src="templates/u... | 1024i | 1024 intelligence/admin/templates/user/login.php | PHP | asf20 | 1,306 |
a.status-1{background:url(../../../images/icon-status.gif) no-repeat; display:block; width:16px; height:16px;}
a.status-0{background:url(../../../images/icon-status.gif) 0 -16px no-repeat; display:block; width:16px; height:16px;}
a.block-0{background:url(../../../images/icon-status.gif) no-repeat; display:block; ... | 1024i | 1024 intelligence/admin/templates/user/css/listing.css | CSS | asf20 | 468 |
html{background:#FFF;}
body{text-align:center;}
.body{margin:100px auto 0; width:400px;}
.logo{background:url(../images/logo.png) center center no-repeat; height:60px;}
.logo-text{padding-top:40px; padding-left:200px; text-align:left;}
.login-box{margin-top:20px;}
.login-box-tl{background:url(../images/box-co... | 1024i | 1024 intelligence/admin/templates/user/css/login.css | CSS | asf20 | 1,450 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'content'.DS.'content.php';
class template_listing extends template_content
{
protected function head()
{
$frontpage_id = 0;
$content_list = $this->get('content_list');
foreach($content_list as $content)
{
if($content->frontpage==1)
{
... | 1024i | 1024 intelligence/admin/templates/content/listing.php | PHP | asf20 | 3,734 |
function selectCategory(iCategoryID)
{
window.location.href="./?controller=content&task=listing&category_id="+iCategoryID;
}
function setFrontpage(iContentID)
{
if(g_iFrontpageID == iContentID) return;
$.ajax({
type: "GET",
url: "./?controller=content&task=ajax_set_frontpage&content_id="+iContentI... | 1024i | 1024 intelligence/admin/templates/content/js/listing.js | JavaScript | asf20 | 668 |
/*
@最初版本开发日期: 2010年08月14日
@著作权所有: Lou Barnes ( http://www.loubarnes.com )
报告漏洞,意见或建议, 请联系 Lou Barnes(iua1024@gmail.com) 或登陆 http://www.loubarnes.com
*/
// 为新添加的节点分配临时ID
var g_iNewCategoryID = 0;
$(function(){
updateOrderIcon();
});
// 添加分类
function addSubCategory(iCategoryID)
{
if(g_iNewCateg... | 1024i | 1024 intelligence/admin/templates/content/js/category_listing.js | JavaScript | asf20 | 14,430 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'content'.DS.'content.php';
class template_category_listing extends template_content
{
protected function head()
{
$category_list = $this->get('category_list');
?>
<script type="text/javascript" language="javascript" src="templates/content/js/... | 1024i | 1024 intelligence/admin/templates/content/category_listing.php | PHP | asf20 | 4,408 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'content'.DS.'content.php';
class template_edit extends template_content
{
protected function head()
{
$this->load_editor();
}
protected function center()
{
$content_id = $this->get('content_id');
$content = $this->get('content');
... | 1024i | 1024 intelligence/admin/templates/content/edit.php | PHP | asf20 | 2,938 |
<?php
class template_content extends theme
{
protected function toolbar()
{
?>
<div class="box">
<div class="box-tl"><div class="box-tr"><div class="box-tm"></div></div></div>
<div class="box-m">
<div class="toobar">
<a href="./?controller=content&task=listing">文章列表</a> |
... | 1024i | 1024 intelligence/admin/templates/content/content.php | PHP | asf20 | 627 |
a.frontpage-1{background:url(../../../images/icon-status.gif) no-repeat; display:block; width:16px; height:16px;}
a.frontpage-0{background:url(../../../images/icon-status.gif) 0 -16px no-repeat; display:block; width:16px; height:16px;}
| 1024i | 1024 intelligence/admin/templates/content/css/listing.css | CSS | asf20 | 244 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'technic'.DS.'technic.php';
class template_listing extends template_technic
{
protected function head()
{
?>
<link type="text/css" rel="stylesheet" href="templates/technic/css/listing.css">
<script type="text/javascript" language="javascript" sr... | 1024i | 1024 intelligence/admin/templates/technic/listing.php | PHP | asf20 | 2,727 |
function selectCategory(iCategoryID)
{
window.location.href="./?controller=technic&task=listing&category_id="+iCategoryID;
} | 1024i | 1024 intelligence/admin/templates/technic/js/listing.js | JavaScript | asf20 | 128 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'technic'.DS.'technic.php';
class template_edit extends template_technic
{
protected function head()
{
$this->load_editor();
}
protected function center()
{
$technic = $this->get('technic');
$categories = $this->get('categories');
... | 1024i | 1024 intelligence/admin/templates/technic/edit.php | PHP | asf20 | 2,467 |
<?php
class template_technic extends theme
{
protected function toolbar()
{
?>
<div class="box">
<div class="box-tl"><div class="box-tr"><div class="box-tm"></div></div></div>
<div class="box-m">
<div class="toobar">
<a href="./?controller=technic&task=listing">技术文档列表</a> |
... | 1024i | 1024 intelligence/admin/templates/technic/technic.php | PHP | asf20 | 541 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'product'.DS.'product.php';
class template_listing extends template_product
{
protected function head()
{
$products = $this->get('products');
?>
<link type="text/css" rel="stylesheet" href="templates/product/css/listing.css">
<script type="tex... | 1024i | 1024 intelligence/admin/templates/product/listing.php | PHP | asf20 | 2,689 |
function selectCategory(iCategoryID)
{
window.location.href="./?controller=product&task=listing&category_id="+iCategoryID;
} | 1024i | 1024 intelligence/admin/templates/product/js/listing.js | JavaScript | asf20 | 128 |
<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'product'.DS.'product.php';
class template_edit extends template_product
{
protected function head()
{
$this->load_editor();
}
protected function center()
{
$product_id = $this->get('product_id');
$product = $this->get('product');
... | 1024i | 1024 intelligence/admin/templates/product/edit.php | PHP | asf20 | 2,944 |
<?php
class template_product extends theme
{
protected function toolbar()
{
?>
<div class="box">
<div class="box-tl"><div class="box-tr"><div class="box-tm"></div></div></div>
<div class="box-m">
<div class="toobar">
<a href="./?controller=product&task=listing">产品列表</a> |
... | 1024i | 1024 intelligence/admin/templates/product/product.php | PHP | asf20 | 535 |
<?php
class config_theme
{
public $name = 'default';
}
?> | 1024i | 1024 intelligence/admin/configs/theme.php | PHP | asf20 | 64 |
<?php
class config_bone_webservices
{
public $uri = 'http://www.mrbone.org/webservices';
public $uri_theme = 'http://www.mrbone.org/webservices/theme';
public $uri_application = 'http://www.mrbone.org/webservices/application';
}
?> | 1024i | 1024 intelligence/admin/configs/bone_webservices.php | PHP | asf20 | 244 |
<?php
define( 'DS', DIRECTORY_SEPARATOR );
define( 'APP_DIR', 'admin' );
define( 'BONE_ROOT', str_replace(DS.APP_DIR,'', dirname(__FILE__)) );
require( BONE_ROOT.DS.'system'.DS.'tool.php' );
require( BONE_ROOT.DS.'system'.DS.'bone.php' );
require( BONE_ROOT.DS.APP_DIR.DS.'system'.DS.'worker.php' );
$worker =... | 1024i | 1024 intelligence/admin/index.php | PHP | asf20 | 393 |
<?php
class model_application extends model
{
public function get_list()
{
$db = bone::get_db();
return $db->get_object_list( 'SELECT * FROM `bone_application`' );
}
public function get_frontend_controller_list($application_id=0)
{
$db = bone::get_db();
if($application_id==0)
return $d... | 1024i | 1024 intelligence/admin/models/application.php | PHP | asf20 | 9,460 |
<?php
class model_config extends model
{
public function save($config, $name, $app_dir = null)
{
$vars = get_object_vars($config);
$buf = "<?php\r\n";
$buf .= 'class config_'.$name."\r\n";
$buf .= "{\r\n";
foreach($vars as $key=>$val)
{
$buf .= ' public $'.$key.' = ';
if( is_bool(... | 1024i | 1024 intelligence/admin/models/config.php | PHP | asf20 | 803 |
<?php
class model_theme extends model
{
public function get_theme_list()
{
$db = bone::get_db();
return $db->get_objects( 'SELECT * FROM `bone_theme`' );
}
public function make_default($theme_id)
{
$db = bone::get_db();
$db->execute( 'UPDATE `bone_theme` SET `is_default`=0 WHERE `is_defa... | 1024i | 1024 intelligence/admin/models/theme.php | PHP | asf20 | 1,127 |
<?php
class model_menu extends model
{
// 获取菜单组列表
public function get_group_list()
{
$db = bone::get_db();
return $db->get_objects( 'SELECT * FROM `bone_menu_group` ORDER BY `is_backend` ASC' );
}
// 获取菜单组中总数
public function get_group_sum()
{
$db = bone::get_db();
return $db->get_resul... | 1024i | 1024 intelligence/admin/models/menu.php | PHP | asf20 | 4,485 |
<?php
class model_user extends model
{
public function login($username, $password)
{
$session = bone::get_session();
$ip = $_SERVER["REMOTE_ADDR"];
$times = $session->get( $ip );
if( !$times ) $times=0;
$times++;
if($times>10)
{
$this->set_error('系统检测到您的登陆行为异常, 限制登陆!');
return fal... | 1024i | 1024 intelligence/admin/models/user.php | PHP | asf20 | 4,726 |
<?php
class controller_application extends controller_theme
{
public function __construct()
{
parent::__construct();
}
public function listing()
{
$model = bone::get_model('application', APP_DIR);
$applications = $model->get_list();
$template = bone::get_template('application.listing', ... | 1024i | 1024 intelligence/admin/controllers/application.php | PHP | asf20 | 6,059 |
<?php
class controller_config extends controller_theme
{
public function __construct()
{
parent::__construct();
}
public function config_system()
{
$config = bone::get_config('system');
$template = bone::get_template('config.config_system', APP_DIR);
$template->set_title('配置系统参数');
$... | 1024i | 1024 intelligence/admin/controllers/config.php | PHP | asf20 | 2,602 |
<?php
class controller_theme extends controller
{
public function __construct()
{
$my = bone::get_user();
if($my->guest || !isset($my->is_admin) || $my->is_admin!=1 )
{
$controller = get('controller');
$task = get('task');
if( $controller!='user' || ($task!='login' && $task!='ajax_login... | 1024i | 1024 intelligence/admin/controllers/theme.php | PHP | asf20 | 974 |
<?php
class controller_menu extends controller_theme
{
public function __construct()
{
parent::__construct();
$model = bone::get_model('menu', APP_DIR);
$this->set_data('group_list', $model->get_group_list());
}
//菜单组列表
public function group_listing()
{
$template = bone::get_template('m... | 1024i | 1024 intelligence/admin/controllers/menu.php | PHP | asf20 | 4,814 |
<?php
class controller_themes extends controller_theme
{
public function __construct()
{
parent::__construct();
}
public function listing()
{
$model = bone::get_model('theme', APP_DIR);
$theme_list = $model->get_theme_list();
$template = bone::get_template('themes.listing', APP_DIR);
... | 1024i | 1024 intelligence/admin/controllers/themes.php | PHP | asf20 | 4,200 |
<?php
class controller_technic extends controller_theme
{
public function __construct()
{
parent::__construct();
}
public function listing()
{
$key = get('key', null);
$category_id = get('category_id', 0, 'int');
$model = bone::get_model('technic');
$template = bone::get_template('t... | 1024i | 1024 intelligence/admin/controllers/technic.php | PHP | asf20 | 2,386 |
<?php
class controller_user extends controller_theme
{
public function __construct()
{
parent::__construct();
}
// 登陆页面
public function login()
{
$my = bone::get_user();
if(!$my->guest && isset($my->is_admin) && $my->is_admin==1)
{
$this->redirect('./?controller=user&task=dashboard');... | 1024i | 1024 intelligence/admin/controllers/user.php | PHP | asf20 | 5,491 |
<?php
class controller_product extends controller_theme
{
public function __construct()
{
parent::__construct();
}
public function listing()
{
$category_id = get('category_id', 0, 'int');
$model = bone::get_model('product', APP_DIR);
$template = bone::get_template('product.listing', AP... | 1024i | 1024 intelligence/admin/controllers/product.php | PHP | asf20 | 2,724 |
<?php
class controller_content extends controller_theme
{
public function __construct()
{
parent::__construct();
}
public function listing()
{
$category_id = get('category_id', -1, 'int');
$model = bone::get_model('content', APP_DIR);
$template = bone::get_template('content.listing', AP... | 1024i | 1024 intelligence/admin/controllers/content.php | PHP | asf20 | 5,603 |
<?php
class controller_upload extends controller_theme
{
public function __construct()
{
parent::__construct();
}
// 上传图像 jpg, gif, png
public function upload_image()
{
$template = bone::get_template('upload.upload_image', APP_DIR);
$template->set_title('上传图像文件');
$template->set_data($t... | 1024i | 1024 intelligence/admin/controllers/upload.php | PHP | asf20 | 1,642 |
<?php
class table_application extends table
{
public $id = 0;
public $application_id = 0;
public $application = '';
public $name = '';
public $description = '';
public $auther = '';
public $auther_email = '';
public $auther_website = '';
public $thumbnail = '';
public $image = '';
public $install_time = 0;
... | 1024i | 1024 intelligence/admin/tables/application.php | PHP | asf20 | 402 |
<?php
class table_theme extends table
{
public $id = 0;
public $theme_id = 0;
public $theme = '';
public $name = '';
public $description = '';
public $auther = '';
public $auther_email = '';
public $auther_website = '';
public $thumbnail = '';
public $image = '';
public $is_default = 0;
public $install_tim... | 1024i | 1024 intelligence/admin/tables/theme.php | PHP | asf20 | 403 |
<?php
class table_application_backend_controller extends table
{
public $id = 0;
public $application_id = 0;
public $tasks = '';
function __construct()
{
parent::__construct( 'bone_application_backend_controller', 'id');
}
} | 1024i | 1024 intelligence/admin/tables/application_backend_controller.php | PHP | asf20 | 234 |
<?php
class table_application_install_log extends table
{
public $id = 0;
public $application_id = 0;
public $file = '';
function __construct()
{
parent::__construct( 'bone_application_install_log', 'id');
}
}
| 1024i | 1024 intelligence/admin/tables/application_install_log.php | PHP | asf20 | 220 |
<?php
class table_application_frontend_controller extends table
{
public $id = 0;
public $application_id = 0;
public $tasks = '';
function __construct()
{
parent::__construct( 'bone_application_frontend_controller', 'id');
}
} | 1024i | 1024 intelligence/admin/tables/application_frontend_controller.php | PHP | asf20 | 236 |
function toggleWest()
{
var e =$('.theme-west');
if(e.css("display")=="block")
{
e.hide();
$(".theme-center").css("margin-left","0");
$("html").css("background-position","-120px 0");
}
else
{
e.show();
$(".theme-center").css("margin-left","120px");
$("html").css("background-position","0 0... | 1024i | 1024 intelligence/admin/themes/default/js/theme.js | JavaScript | asf20 | 330 |
<?php
class theme extends template
{
public function __construct()
{
$this->north = true; //顶部
$this->west = true; //左部
$this->center = true; //中部
$this->east = false; //无右部
$this->south = true; //底部
}
// head 头, 用于子类添加js和css
protected function head(){}
public function display(... | 1024i | 1024 intelligence/admin/themes/default/theme.php | PHP | asf20 | 6,155 |