Example #1
0
 /**
      * 'site_id' => intval($this->input['site_id']),
       'column_id' => intval($this->input['column_id']),
       'name' => urldecode($this->input['name']),
       'update_time' => intval($this->input['update_time']),
       'update_type' => intval($this->input['update_type']),
       'datasource_id' => intval($this->input['datasource_id']),
       'width' => intval($this->input['width']),
       'height' => intval($this->input['height']),
       'line_num' => intval($this->input['line_num']),
       'father_tag' => urldecode($this->input['father_tag']),
       'loop_body' => urldecode($this->input['loop_body']),
       'next_update_time' => TIMENOW+intval($this->input['update_time']),
       'is_support_push' => intval($this->input['is_support_push']),
      * */
 public function insert_block($data)
 {
     if ($data['block_id']) {
         include_once CUR_CONF_PATH . 'lib/block.class.php';
         $block = new block();
         return $block->check_block_relation($data['site_id'], $data['block_id'], $data['page_id'], $data['page_data_id'], $data['expand_name']);
     }
     include_once ROOT_PATH . 'lib/class/publishconfig.class.php';
     $pub_config = new publishconfig();
     include_once CUR_CONF_PATH . 'lib/block.class.php';
     $block = new block();
     include_once CUR_CONF_PATH . 'lib/block_set.class.php';
     $block_set = new block_set();
     include_once ROOT_PATH . 'lib/class/data_source.class.php';
     $data_source = new dataSource();
     $block_data = array('site_id' => $data['site_id'], 'sort_id' => $data['sort_id'], 'name' => $data['name'], 'site_id' => $data['site_id'], 'datasource_id' => $data['datasource_id'], 'width' => $data['width'], 'height' => $data['height'], 'line_num' => $data['line_num'], 'father_tag' => $data['father_tag'], 'loop_body' => $data['loop_body'], 'next_update_time' => $data['update_time'], 'is_support_push' => $data['is_support_push'], 'datasource_argument' => $data['datasource_argument'] ? serialize($data['datasource_argument']) : '');
     //根据栏目id查出站点id
     $insert_id = $block->insert($block_data);
     $block->update(array('group_id' => $insert_id), $insert_id);
     $block->check_block_relation($data['site_id'], $insert_id, $data['page_id'], $data['page_data_id'], $data['content_type'], $data['client_type'], $data['expand_name']);
     $line_data = array('block_id' => $insert_id);
     //根据数据源取对应内容
     $content_data = array();
     if ($data['datasource_id']) {
         $content_data = $data_source->get_content_by_datasource($data['datasource_id'], $data['datasource_argument']);
     }
     $block_set->insert_line($data['line_num'], $line_data);
     if (is_array($content_data) && $content_data) {
         $block_set->insert_content($data['line_num'], $insert_id, $content_data);
     }
     $data['id'] = $insert_id;
     return $data;
 }
 /**
  * 处理summary的编码信息
  * @param node $node
  * @param DataFlow $dataFlow
  * @param block $block
  * @param fileSummary $fileSummary
  */
 public static function setEncodeInfo($node, $dataFlow, $block, $fileSummary)
 {
     global $F_ENCODING_STRING;
     $funcName = NodeUtils::getNodeFunctionName($node);
     //发现有编码操作的函数,将编码信息加入至map中
     if (in_array($funcName, $F_ENCODING_STRING)) {
         $dataFlow->getLocation()->addEncoding($funcName);
         //向上追踪变量,相同变量的净化信息,全部添加
         $funcParams = NodeUtils::getNodeFuncParams($node);
         //traceback
         $sameVarEncodeInfo = array();
         foreach ($funcParams as $param) {
             $dataFlows = $block->getBlockSummary()->getDataFlowMap();
             $dataFlows = array_reverse($dataFlows);
             $ret = self::encodeSameVarMultiBlockHandler($param, $block, $dataFlows);
             //如果一个参数没有净化,则未净化
             if (!$ret[0]) {
                 $sameVarEncodeInfo = array();
                 break;
             }
             $sameVarEncodeInfo = array_merge($sameVarEncodeInfo, $ret['funcs']);
         }
         //加入此变量的净化信息中
         foreach ($sameVarEncodeInfo as $funcName) {
             $dataFlow->getLocation()->addEncoding($funcName);
         }
     }
     //清除解码
     EncodingHandler::clearEncodeInfo($funcName, $node, $dataFlow);
     //print_r($dataFlow);
 }
Example #3
0
 public function onSide()
 {
     $header['title'] = '系统管理';
     $header['js'][] = url::module() . '/admin/js/side.js';
     $header['body']['class'] = 'side';
     page::header($header);
     block::header(array('title' => '系统工具', 'class' => 'show'));
     echo '<ul id="applications" class="list">';
     echo '	<li><a href="' . zotop::url('zotop/system/reboot') . '" target="mainIframe">系统关闭与重启</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/system/clearcahce') . '" target="mainIframe">缓存清理</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/setting') . '" target="mainIframe">系统设置</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/database') . '" target="mainIframe">数据库备份与还原</a></li>';
     echo '	<li><a href="' . zotop::url('database') . '" target="mainIframe">数据库管理</a></li>';
     echo '	<li><a href="' . zotop::url('filemanager') . '" target="mainIframe">文件管理</a></li>';
     echo '</ul>';
     block::footer();
     block::header(array('title' => '模块管理', 'class' => 'show'));
     echo '<ul class="list">';
     echo '	<li><a href="' . zotop::url('zotop/module') . '" target="mainIframe">模块管理</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/module/add') . '" target="mainIframe">模块添加</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/module/install') . '" target="mainIframe">模块安装</a></li>';
     echo '</ul>';
     block::footer();
     block::header(array('title' => '管理员设置', 'class' => 'show'));
     echo '<ul class="list">';
     echo '	<li><a href="' . zotop::url('zotop/user') . '" target="mainIframe">系统用户管理</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/usergroup') . '" target="mainIframe">系统用户组管理</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/role') . '" target="mainIframe">系统角色管理</a></li>';
     echo '</ul>';
     block::footer();
     //echo '<div style="height:600px;"></div>';
     page::footer();
 }
Example #4
0
 public function onDefault()
 {
     $header['title'] = '控制面板';
     $header['js'][] = url::module() . '/admin/js/side.js';
     $header['body']['class'] = 'side';
     page::header($header);
     block::header(array('title' => '应用列表', 'action' => '<a href="#" title="栏目管理">管理</a>'));
     echo '<ul id="applications" class="list">';
     echo '	<li><a href="' . zotop::url('zotop/main') . '" target="mainIframe">控制中心</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/test') . '" target="mainIframe">表单测试</a></li>';
     echo '	<li><a href="' . zotop::url('database') . '" target="mainIframe">数据库管理</a></li>';
     echo '	<li><a href="' . zotop::url('filemanager') . '" target="mainIframe">文件管理</a></li>';
     echo '</ul>';
     block::footer();
     block::header(array('title' => '内容管理', 'action' => '<a href="javascript:zotop.frame.side().location.reload();">刷新</a> <a href="#" title="栏目管理">管理</a>'));
     echo '<ul class="list">';
     echo '	<li><a href="' . zotop::url('zotop/main') . '" target="mainIframe">控制中心</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/test') . '" target="mainIframe">表单测试</a></li>';
     echo '	<li><a href="' . zotop::url('database') . '" target="mainIframe">数据库管理</a></li>';
     echo '	<li><a href="' . zotop::url('filemanager') . '" target="mainIframe">文件管理</a></li>';
     echo '</ul>';
     block::footer();
     //echo '<div style="height:600px;"></div>';
     page::footer();
 }
Example #5
0
 public function onDefault()
 {
     if (form::isPostBack()) {
         msg::error('开发中', '数据保存开发中,请稍后……');
     }
     $header['title'] = '系统设置';
     page::header($header);
     page::top();
     page::navbar($this->navbar(), 'main');
     form::header();
     block::header('网站基本信息');
     form::field(array('type' => 'text', 'label' => zotop::t('网站名称'), 'name' => 'zotop.site.title', 'value' => zotop::config('zotop.site.title'), 'description' => zotop::t('网站名称,将显示在标题和导航中')));
     form::field(array('type' => 'text', 'label' => zotop::t('网站域名'), 'name' => 'zotop.site.domain', 'value' => zotop::config('zotop.site.domain'), 'description' => zotop::t('网站域名地址,不包含http://,如:www.zotop.com')));
     form::field(array('type' => 'text', 'label' => zotop::t('备案信息'), 'name' => 'zotop.site.icp', 'value' => zotop::config('zotop.site.icp'), 'description' => zotop::t('页面底部可以显示 ICP 备案信息,如果网站已备案,在此输入您的授权码,它将显示在页面底部,如果没有请留空')));
     form::field(array('type' => 'select', 'options' => array('0' => '不显示', '1' => '显示'), 'label' => zotop::t('授权信息'), 'name' => 'zotop.site.license', 'value' => zotop::config('zotop.site.license'), 'description' => zotop::t('页脚部位显示程序官方网站链接')));
     form::field(array('type' => 'textarea', 'label' => zotop::t('网站简介'), 'name' => 'zotop.site.about', 'value' => zotop::config('zotop.site.about')));
     block::footer();
     block::header('联系信息设置');
     form::field(array('type' => 'text', 'label' => zotop::t('公司名称'), 'name' => 'zotop.site.title', 'value' => '', 'description' => zotop::t('网站隶属的公司或者组织名称')));
     form::field(array('type' => 'textarea', 'label' => zotop::t('网站简介'), 'name' => 'zotop.site.about', 'value' => ''));
     block::footer();
     form::buttons(array('type' => 'submit'), array('type' => 'back'));
     form::footer();
     page::bottom();
     page::footer();
 }
Example #6
0
 public function onDefault()
 {
     if (form::isPostBack()) {
         $post = array();
         $post['username'] = request::post('username');
         $post['password'] = request::post('password');
         $post['logintime'] = time();
         $user = zotop::model('zotop.user');
         $data = $user->read($post['username'], 'username');
         //zotop::dump($data);
         if ($data == false) {
             msg::error('登陆失败', zotop::t('账户名称`{$username}`不存在,请检查!', array('username' => $post['username'])));
         }
         zotop::user($data);
         msg::success('登陆成功', '登陆成功,系统正在加载中', 'reload', 2);
     }
     if (zotop::user() != null) {
         zotop::redirect('zotop/index');
     }
     $header['title'] = '用户登录';
     $header['js'] = url::module() . '/admin/js/login.js';
     $header['body']['class'] = "login";
     page::header($header);
     block::header(array('id' => 'LoginWindow', 'title' => '用户登录'));
     form::header(array('title' => '', 'description' => '请输入用户名和密码', 'class' => 'small'));
     form::field(array('type' => 'text', 'label' => zotop::t('帐 户(U)'), 'name' => 'username', 'value' => zotop::user('username'), 'valid' => 'required:true'));
     form::field(array('type' => 'password', 'label' => zotop::t('密 码(P)'), 'name' => 'password', 'value' => ''));
     form::buttons(array('type' => 'submit', 'value' => '登 陆'), array('type' => 'button', 'name' => 'options', 'value' => '选 项'));
     form::footer();
     block::footer();
     page::footer();
 }
Example #7
0
 /**
  * Build a page object
  * @param integer $id page id
  * 
  */
 public function __construct($id, $module = FALSE)
 {
     parent::__construct($id);
     if ($module === FALSE) {
         $module = \app::$config['defaultModule'];
     }
     $this->moduleName = $module;
 }
Example #8
0
 public function ajaxRefresh($type = FALSE)
 {
     if ($type === 'add') {
         return parent::ajaxRefresh($type);
     } else {
         return 'document.getElementById("preview").contentWindow.location.reload()';
     }
 }
Example #9
0
 public function __construct($id)
 {
     parent::__construct($id);
     $img = array('Parsimony.png' => array('name' => 'core/files/Parsimony.png', 'title' => 'Parsimony A new Generation of CMS', 'alt' => 'Parsimony A new Generation of CMS', 'url' => 'core/files/Parsimony.png', 'description' => 'Helps the web to have talent and share it'));
     $this->setConfig('img', $img);
     $this->setConfig('width', '500');
     $this->setConfig('height', '250');
 }
Example #10
0
 public static function getParams()
 {
     $config_path = self::$blocks[self::$block_name]['path'] . str_replace('.php', '_config.json', self::$block_name);
     $res = [];
     if (file_exists($config_path)) {
         $config = file_get_contents($config_path);
         $res = json_decode($config, true);
     }
     self::$params = $res;
 }
Example #11
0
 public function __construct($id)
 {
     parent::__construct($id);
     $this->setConfig('adress', '12 rue Louis Courtois de Viçose');
     $this->setConfig('town', 'Toulouse');
     $this->setConfig('country', 'France');
     $this->setConfig('language', 'fr');
     $this->setConfig('view', 'm');
     $this->setConfig('zoom', '15');
 }
Example #12
0
 public function render_region($region)
 {
     // Fetch regions (how?) and render them (like _page and _node)
     global $db;
     $blocks = $db->select('regions r, regioned_blocks rb, blocks b', "r.region_name = " . $db->escapeAndQuote($region) . " AND r.id = rb.region_id AND rb.block_id = b.id");
     foreach ($blocks as $block) {
         $block = block::load($block);
         if ($block->available($GLOBALS['url_path'])) {
             $block->render();
         }
     }
 }
Example #13
0
 public function onDefault()
 {
     $tables = $this->db->table()->get(true);
     $header['title'] = '数据库管理';
     page::header($header);
     page::add('<div id="page" class="clearfix">');
     page::add('<div id="side">');
     block::header('数据库基本信息');
     table::header();
     table::row(array('w60' => '数据库名称', '2' => '' . $this->db->config['database'] . ''));
     table::row(array('w60' => '数据库版本', '2' => '' . $this->db->version(true) . ''));
     table::row(array('w60' => '数据库大小', '2' => '<b>' . $this->db->size() . '</b> '));
     table::row(array('w60' => '数据表个数', '2' => '<b>' . count($tables) . '</b> 个'));
     table::footer();
     block::footer();
     page::add('</div>');
     page::add('<div id="main">');
     page::top();
     page::navbar($this->navbar(), 'table');
     //zotop::dump($tables);
     form::header(array('class' => 'ajax'));
     $column['select'] = '<input name="id" class="selectAll" type="checkbox"/>';
     $column['name'] = '数据表名称';
     $column['size  w60'] = '大小';
     $column['Rows  w60'] = '记录数';
     $column['Engine  w60'] = '类型';
     $column['Collation  w100'] = '整理';
     $column['manage view w60'] = '浏览';
     $column['manage delete'] = '删除';
     table::header('list', $column);
     foreach ($tables as $table) {
         $size = $table['Data_length'] + $table['Index_length'];
         $column = array();
         $column['select'] = '<input name="id[]" class="select" type="checkbox"/>';
         $column['name'] = '<b>' . $table['Name'] . '</b><h5>' . $table['Comment'] . '</h5>';
         $column['size w60'] = (string) format::size($size);
         $column['Rows  w60'] = $table['Rows'];
         $column['Engine  w60'] = $table['Engine'];
         $column['collation  w100'] = $table['Collation'];
         $column['manage view w60'] = '<a href="' . url::build('system/database/table/record') . '">浏览</a>';
         $column['manage delete'] = '<a href="' . url::build('system/database/table/delete') . '" class="confirm">删除</a>';
         table::row($column);
     }
     table::footer();
     page::add('<div style="height:200px;"></div>');
     form::buttons(array('type' => 'select', 'style' => 'width:180px', 'options' => array('check' => '优化', 'delete' => '删除')), array('type' => 'submit', 'value' => '执行操作'));
     form::footer();
     page::bottom();
     page::add('</div>');
     page::add('</div>');
     page::footer();
 }
Example #14
0
    public function onDefault()
    {
        $header['title'] = '用户登录';
        $header['js'] = '
        	$(function(){
				$("div.block").show().center().drag(".block-header");
				window.onresize=function(){
					$("div.block").center();
				};
   		})
        ';
        $header['body']['class'] = "login";
        page::header($header);
        block::header(array('id' => 'LoginWindow', 'title' => '用户登录'));
        form::header(array('title' => '', 'description' => '请输入用户名和密码', 'class' => 'ajax'));
        form::add(array('type' => 'text', 'label' => t('帐 户(U)'), 'name' => 'username', 'value' => ''));
        form::add(array('type' => 'password', 'label' => t('密 码(P)'), 'name' => 'password', 'value' => ''));
        form::buttons(array('type' => 'submit', 'value' => '登 陆'), array('type' => 'button', 'name' => 'options', 'value' => '选 项'));
        form::footer();
        block::footer();
        page::footer();
    }
Example #15
0
 public function onDefault()
 {
     $header['title'] = '测试表单';
     page::header($header);
     page::top();
     page::navbar(array(array('id' => 'form', 'title' => '测试表单', 'href' => url::build('system/test')), array('id' => 'info', 'title' => '系统信息', 'href' => url::build('system/index/info'))), 'form');
     form::header(array('class' => 'ajax'));
     block::header(array('title' => '基本信息', 'action' => 'more'));
     form::add(array('type' => 'checkbox', 'label' => t('多选框'), 'name' => 'test1', 'options' => array('1' => 'a1', '2' => 'a2', '3' => 'a1', '4' => 'a2', '5' => 'a1', '6' => 'a2'), 'value' => array('1', '2'), 'description' => '最多只允许选择三项'));
     form::add(array('type' => 'checkbox', 'label' => t('多选框'), 'name' => 'test11', 'options' => array('1' => 'a1', '2' => 'a2', '3' => 'a1'), 'value' => array('1', '2'), 'class' => 'block', 'description' => '最多只允许选择三项'));
     form::add(array('type' => 'select', 'label' => '下拉列表', 'name' => 'test22', 'options' => array('1' => 'a1', '2' => 'a2', '3' => 'a1', '4' => 'a2', '5' => 'a1', '6' => 'a2'), 'value' => array('2', '4'), 'description' => '提示信息'));
     form::add(array('type' => 'select', 'label' => '下拉列表', 'name' => 'test2', 'options' => array('1' => 'a1', '2' => 'a2', '3' => 'a1', '4' => 'a2', '5' => 'a1', '6' => 'a2'), 'value' => '2', 'description' => '提示信息'));
     form::add(array('type' => 'text', 'label' => '文本框', 'name' => 'test3', 'value' => '2的飞洒的发生地', 'description' => '提示信息'));
     block::footer();
     block::header(array('title' => '高级信息', 'action' => 'more'));
     form::add(array('type' => 'image', 'label' => '上传图片', 'name' => 'test4', 'value' => '2的飞洒的发生地', 'valid' => 'required:true', 'description' => '提示信息'));
     form::add(array('type' => 'textarea', 'label' => '文本框', 'name' => 'test32', 'value' => '2的飞洒的发生地', 'valid' => 'required:true,maxlength:500', 'description' => '提示信息'));
     form::add(array('label' => '组合', 'type' => 'group', 'fields' => array(array('label' => '年', 'name' => 'year', 'type' => 'text'), array('label' => '月', 'name' => 'month', 'type' => 'text'), array('label' => '日', 'name' => 'day', 'type' => 'text')), 'description' => '生成一个复合控件'));
     block::footer();
     form::buttons(array('type' => 'submit'), array('type' => 'reset'));
     form::footer();
     page::bottom();
     page::footer();
 }
Example #16
0
    $block9->noresults();
}
$block9->closeToggle();
$block9->closeFormResults();
$block9->openPaletteScript();
if ($teamMember == 'true' || $_SESSION['profilSession'] == '5') {
    $block9->paletteScript(0, 'add', '../tasks/edittask.php?project=' . $projectDetail->pro_id[0], 'true,false,false', $strings['add']);
    $block9->paletteScript(1, 'remove', '../tasks/deletetasks.php?project=' . $projectDetail->pro_id[0], 'false,true,true', $strings['delete']);
    $block9->paletteScript(2, 'copy', '../tasks/edittask.php?project=' . $projectDetail->pro_id[0] . '&cpy=true', 'false,true,false', $strings['copy']);
}
$block9->paletteScript(6, 'info', '../tasks/viewtask.php', 'false,true,false', $strings['view']);
if ($teamMember == 'true' || $_SESSION['profilSession'] == '5') {
    $block9->paletteScript(7, 'edit', '../tasks/edittask.php?project=' . $projectDetail->pro_id[0], 'false,true,true', $strings['edit']);
}
$block9->closePaletteScript($comptListMilestones, $listMilestones->tas_id);
$block10 = new block();
//--- block header ----
$block10->form = 'wbTuuC';
$block10->openForm("../phases/listphases.php?id={$id}#" . $block10->form . "Anchor");
$block10->sorting('tasks_closed', $sortingUser->sor_tasks_closed[0], 'tas.due_date ASC', $sortingFields = array('tas.priority', 'tas.name', 'tas.status', 'tas.completion', 'tas.due_date', 'tas.parent_phase', 'mem.login', 'tas.published'));
$block10->borne = $blockPage->returnBorne('1');
$block10->rowsLimit = '20';
//--- get data from sql ---------
$tmpquery = "WHERE tas.project = '{$id}' AND tas.status NOT IN(0,2,3) AND tas.milestone = '1' ORDER BY {$block10->sortingValue}";
$block10->recordsTotal = compt($initrequest['tasks'] . ' ' . $tmpquery);
//--- list ---------
$listTasks = new request();
$listTasks->openTasks($tmpquery, $block10->borne, $block10->rowsLimit);
$comptListTasks = count($listTasks->tas_id);
$block10->headingToggle($strings['tasks_closed'] . ' <span class=addition>(' . $comptListTasks . ')</span>');
$block10->openPaletteIcon();
Example #17
0
    } else {
        echo "<option value='" . $projmem->tea_mem_id[$i] . "'>" . $projmem->tea_mem_name[$i] . "{$clientUser}</option>";
    }
}
echo '
	  </select></td>
	</tr>';
if ($ld == '') {
    $ld = $date;
}
$block1->contentRow($strings['date'], "<input type=\"text\" style=\"width: 150px;\" name=\"ld\" id=\"sel1\"\r\n\tsize=\"20\" value=\"{$ld}\"><button type=\"reset\" id=\"trigger_a\">...</button>\r\n\t<script type=\"text/javascript\">Calendar.setup({ inputField:\"sel1\", button:\"trigger_a\" });</script>");
echo "\r\n\t<tr class='odd'>\r\n\t  <td valign='top' class='leftvalue'>" . $strings["worked_hours"] . " :</td>\r\n\t  <td><input size='20' value='{$hr}' style='width: 150px;' name='hr' maxlength='6' type='text'></td>\r\n\t</tr>\r\n\t<tr class='odd'>\r\n\t  <td valign='top' class='leftvalue'>" . $strings["comments"] . " :</td>\r\n\t  <td><textarea rows='10' style='width: 400px; height: 150px;' name='comm' cols='47'>{$comm}</textarea></td>\r\n\t</tr>\r\n\t<tr class='odd'>\r\n\t  <td valign='top' class='leftvalue'>&nbsp;</td>\r\n\t  <td><input type='SUBMIT' value='" . $strings["save"] . "'></td>\r\n\t</tr>";
$block1->closeContent();
$block1->block_close();
$block1->closeForm();
$block2 = new block();
$block2->form = "ahT";
$block2->openForm("../tasks/addtasktime.php?id={$id}#" . $block2->form . "Anchor");
$block2->heading($strings["task_time"] . ' : ' . $strings["details"]);
$block2->openPaletteIcon();
$block2->paletteIcon(0, "remove", $strings["delete"]);
$block2->paletteIcon(1, "edit", $strings["edit"]);
$block2->closePaletteIcon();
$block2->borne = $blockPage->returnBorne("1");
$block2->rowsLimit = "20";
$block2->sorting('tasks_time', $sortingUser->sor_tasks_time[0], 'tim.date ASC', $sortingFields = array(0 => 'mem.name', 1 => 'tim.date', 2 => 'tim.hours', 3 => 'tim.created', 4 => 'tim.modified', 5 => 'tim.comments'));
$tmpquery = "WHERE tim.task = '{$id}' ORDER BY {$block2->sortingValue}";
$block2->recordsTotal = compt($initrequest["tasks_time"] . " " . $tmpquery);
$listTaskTimes = new request();
$listTaskTimes->openTaskTime($tmpquery, $block2->borne, $block2->rowsLimit);
$comptListTaskTimes = count($listTaskTimes->tim_id);
Example #18
0
//                include_once HOME_URL.'report.php?class_name=ra_item&report_name=ra_report_set_item_leadtime';
?>
        </li>
        <li>
         <span class="button"><a href="<?php 
echo HOME_URL;
?>
form.php?class_name=user_favourite&mode=9">Favourites 
           <img src="<?php 
echo THEME_URL;
?>
/images/edit.png" alt=" update favourite" title='Update Favourite'/>
          </a></span>
         <?php 
echo $fav->show_currentUser_fav();
echo block::show_block_content_by_BlockId('57');
?>
        </li>               
       </ul>
      </div>
      <div id="tabsHeader-3" class="tabContent">
       <?php 
$view_i = new view();
$view_i->view_id = 11;
$view_i->viewResultById();
?>
      </div>
      <div id="tabsHeader-4" class="tabContent">
       <?php 
$view_i->view_id = 12;
$view_i->viewResultById();
Example #19
0
$block1->closeForm();
if ($teamMember == "true" || $_SESSION['profilSession'] == "5") {
    $block1->openPaletteScript();
    $block1->paletteScript(0, "remove", "../meetings/deletemeetings.php?project=" . $meetingDetail->mee_project[0] . "&id=" . $meetingDetail->mee_id[0] . "", "true,true,false", $strings["delete"]);
    $block1->paletteScript(1, "copy", "../meetings/editmeeting.php?project=" . $meetingDetail->mee_project[0] . "&id=" . $meetingDetail->mee_id[0] . '&cpy=true', "true,true,false", $strings["copy"]);
    // $block1->paletteScript(2,"export","export.php?","true,true,false",$strings["export"]);
    if ($sitePublish == "true") {
        $block1->paletteScript(3, "add_projectsite", "../meetings/viewmeeting.php?addToSite=true&id=" . $meetingDetail->mee_id[0] . "&action=publish", "true,true,true", $strings["add_project_site"]);
        $block1->paletteScript(4, "remove_projectsite", "../meetings/viewmeeting.php?removeToSite=true&id=" . $meetingDetail->mee_id[0] . "&action=publish", "true,true,true", $strings["remove_project_site"]);
    }
    $block1->paletteScript(5, "edit", "../meetings/editmeeting.php?project=" . $meetingDetail->mee_project[0] . "&id=" . $meetingDetail->mee_id[0] . '&cpy=false', "true,true,false", $strings["edit"]);
    $block1->paletteScript(6, "timelog", "../meetings/addmeetingtime.php?id=" . $meetingDetail->mee_id[0], "true,true,false", $strings["loghours"]);
    $block1->closePaletteScript("", "");
}
if ($fileManagement == "true") {
    $block2 = new block();
    $block2->form = "mdC";
    $block2->openForm("../meetings/viewmeeting.php?id={$id}#" . $block2->form . "Anchor");
    $block2->headingToggle($strings["linked_content"]);
    $block2->openPaletteIcon();
    if ($teamMember == "true" || $_SESSION['profilSession'] == "5") {
        $block2->paletteIcon(0, "add", $strings["add"]);
        $block2->paletteIcon(1, "remove", $strings["delete"]);
        if ($sitePublish == "true") {
            $block2->paletteIcon(2, "add_projectsite", $strings["add_project_site"]);
            $block2->paletteIcon(3, "remove_projectsite", $strings["remove_project_site"]);
        }
    }
    $block2->paletteIcon(4, "info", $strings["view"]);
    if ($teamMember == "true" || $_SESSION['profilSession'] == "5") {
        $block2->paletteIcon(5, "edit", $strings["edit"]);
Example #20
0
}
$bodyCommand = "onLoad=\"document.assignment_commentForm.acomm.focus();\"";
include '../themes/' . THEME . '/header.php';
$tmpquery = "WHERE tas.id = '{$task}'";
$taskDetail = new request();
$taskDetail->openTasks($tmpquery);
$tmpquery = "WHERE pro.id = '" . $taskDetail->tas_project[0] . "'";
$projectDetail = new request();
$projectDetail->openProjects($tmpquery);
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../tasks/listtasks.php?project=" . $projectDetail->pro_id[0], $strings["tasks"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../tasks/viewtask.php?id=" . $taskDetail->tas_id[0], $taskDetail->tas_name[0], in));
$blockPage->itemBreadcrumbs($strings["assignment_comment"]);
$blockPage->closeBreadcrumbs();
$block1 = new block();
$block1->form = "assignment_comment";
$block1->openForm("../tasks/assignmentcomment.php?action=update&id={$id}&task={$task}&" . session_name() . "=" . session_id());
if ($error != "") {
    $block1->headingError($strings["errors"]);
    $block1->contentError($error);
}
$block1->heading($strings["assignment_comment"]);
$block1->openContent();
$block1->contentTitle($strings["assignment_comment_info"]);
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["task"] . " :</td><td>" . $taskDetail->tas_name[0] . "</td></tr>\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["comments"] . " :</td><td><input style=\"width: 400px;\" maxlength=\"128\" size=\"44\" name=\"acomm\"></input></td></tr>\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td><input type=\"submit\" name=\"Save\" value=\"" . $strings["save"] . "\"></td></tr>";
$block1->closeContent();
$block1->closeForm();
include '../themes/' . THEME . '/footer.php';
Example #21
0
function mylog()
{
    block::header(array('title' => '日志记录', 'action' => '<a class="more" href="' . zotop::url('zotop/log') . '">更多</a>'));
    echo '<div style="height:200px;"></div>';
    block::footer();
}
Example #22
0
                $show_block_flag = 1;
            }
        }
    }
    if ($visibility_option == 3) {
        try {
            $vis_val = ino_eval($block_visibility);
        } catch (Exception $e) {
            echo "<br> Wrong php expression in visibility option" . $e->getMessage();
        }
        $show_block_flag = $vis_val == 1 ? true : false;
    }
    return $show_block_flag;
}
if (!empty($_POST['all_blocks']) && $_POST['all_blocks'] == 1) {
    $block = new block();
    $all_blocks_array = $block->findAll_AvailableBlocks();
    $parameters = !empty($_POST['parameters']) ? $_POST['parameters'] : null;
    $blocks_by_position = array();
    $block_count = 0;
    $url = $_POST['pathname'];
    $session_id = session_id();
    $bc = new block_cache();
    foreach ($all_blocks_array as $records) {
        $block_cache = false;
        $block_count++;
        $position = $records->position;
        $title = $records->title;
        $visibility_option = $records->visibility_option;
        $block_visibility = base64_decode($records->visibility);
        $reference_table = $records->reference_table;
Example #23
0
$checkSession = true;
require_once '../includes/library.php';
if ($action == 'delete') {
    $id = str_replace('**', ',', $id);
    $tmpquery1 = 'DELETE FROM ' . $tableCollab['bookmarks'] . ' WHERE id IN(' . $id . ')';
    connectSql($tmpquery1);
    header('Location: ../bookmarks/listbookmarks.php?view=my&msg=delete');
    exit;
}
//--- header ---
$breadcrumbs[] = buildLink('../bookmarks/listbookmarks.php?view=all', $strings['bookmarks'], LINK_INSIDE);
$breadcrumbs[] = $strings['delete_bookmarks'];
$pageSection = 'bookmarks';
require_once '../themes/' . THEME . '/header.php';
//--- content ------
$block1 = new block();
$block1->form = 'saP';
$block1->openForm('../bookmarks/deletebookmarks.php?action=delete&amp;id=' . $id);
$block1->headingForm($strings['delete_bookmarks']);
$block1->openContent();
$block1->contentTitle($strings['delete_following']);
$id = str_replace('**', ',', $id);
$tmpquery = 'WHERE boo.id IN(' . $id . ') ORDER BY boo.name';
$listBookmarks = new request();
$listBookmarks->openBookmarks($tmpquery);
$comptListBookmarks = count($listBookmarks->boo_id);
for ($i = 0; $i < $comptListBookmarks; $i++) {
    $block1->contentRow('#' . $listBookmarks->boo_id[$i], $listBookmarks->boo_name[$i]);
}
$block1->contentRow('', '<input type="submit" name="delete" value="' . $strings['delete'] . '"> <input type="button" name="cancel" value="' . $strings['cancel'] . '" onClick="history.back();">');
$block1->closeContent();
Example #24
0
            }
            break;
        case 'delete':
            if (isset($_GET['id'])) {
                $idlist = explode('**', $_GET['id']);
                save_translation($_GET['language'], '', $idlist);
            } else {
                echo text('Internal_Error');
            }
            break;
    }
    $topblock->headingForm_close();
    $topblock->block_close();
    echo "<BR>";
}
$block1 = new block();
$block1->headingForm(text('administration'));
// Language Selection Form
$block1->form = "langsel";
$block1->openForm("../administration/edit_language.php?offset=" . $offset);
$block1->openContent();
$block1->contentTitle(text('language_intro'));
echo "<TR><TD ALIGN='center'>";
// build up language select list
asort($langValue);
reset($langValue);
$select = "";
foreach ($langValue as $key => $language) {
    $select .= "<option value='" . $key . "'" . ($sellang == $key ? " SELECTED" : "") . ">" . $language . "</option>";
}
echo text("Choose_Language") . ": <SELECT name='sellang' onChange='submit();'>" . $select . "</SELECT>";
Example #25
0
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in));
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
    $blockPage->itemBreadcrumbs($strings["support_requests"]);
} else {
    if ($supportType == "admin") {
        $blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?", $strings["administration"], in));
        $blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/support.php?", $strings["support_management"], in));
        $blockPage->itemBreadcrumbs($strings["support_requests"]);
    }
}
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "srs";
$block1->openForm("../support/listrequests.php?" . session_name() . "=" . session_id() . "&id={$id}#" . $block1->form . "Anchor");
$block1->heading($strings["support_requests"]);
if ($teamMember == "true" || $profilSession == "0") {
    $block1->openPaletteIcon();
    //$block1->paletteIcon(0,"add",$strings["add"]);
    $block1->paletteIcon(1, "edit", $strings["edit_status"]);
    $block1->paletteIcon(2, "remove", $strings["delete"]);
    $block1->paletteIcon(3, "info", $strings["view"]);
    $block1->closePaletteIcon();
}
$block1->sorting("support_requests", $sortingUser->sor_support_requests[0], "sr.id ASC", $sortingFields = array(0 => "sr.id", 1 => "sr.subject", 2 => "sr.priority", 3 => "sr.status", 4 => "sr.date_open", 5 => "sr.date_close"));
/*$tmpquery = "WHERE mem.id = '$idSession'";
$userDetail = new request();
$userDetail->openMembers($tmpquery);*/
Example #26
0
            $block3->contentError($error3);
        }
        $block3->headingForm($strings["ifc_add_revision"]);
        $block3->openContent();
        $block3->contentTitle($strings["details"]);
        // Add one to the number of current revisions
        $revision = $displayrev + 1;
        echo "\r\n<input value=\"" . $fileDetail->mat_id[0] . "\" name=\"sendto\" type=\"hidden\">\r\n<input value=\"" . $fileDetail->mat_id[0] . "\" name=\"parent\" type=\"hidden\">\r\n<input value=\"{$revision}\" name=\"revision\" type=\"hidden\">\r\n<input value=\"" . $fileDetail->mat_vc_version[0] . "\" name=\"oldversion\" type=\"hidden\">\r\n<input value=\"" . $fileDetail->mat_project[0] . "\" name=\"project\" type=\"hidden\">\r\n<input value=\"" . $fileDetail->mat_meeting[0] . "\" name=\"meeting\" type=\"hidden\">\r\n<input value=\"" . $fileDetail->mat_published[0] . "\" name=\"published\" type=\"hidden\">\r\n<input value=\"" . $fileDetail->mat_name[0] . "\" name=\"filename\" type=\"hidden\">\r\n\r\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">* " . $strings["upload"] . " :</td><td><input size=\"44\" style=\"width: 400px\" name=\"upload\" type=\"FILE\"></td></tr>\r\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["comments"] . " :</td><td><textarea rows=\"3\" style=\"width: 400px; height: 50px;\" name=\"c\" cols=\"43\">{$c}</textarea></td></tr>\r\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td><input type=\"SUBMIT\" value=\"" . $strings["save"] . "\"></td></tr>";
        $block3->closeContent();
        $block3->headingForm_close();
        $block3->closeFormResults();
    }
}
// Update file Block
if ($fileDetail->mat_owner[0] == $_SESSION['idSession']) {
    $block4 = new block();
    $block4->form = "filedetails";
    echo "<a name=\"filedetailsAnchor\"></a>";
    echo "<form accept-charset=\"UNKNOWN\" method=\"POST\" action=\"../meetings/viewfile.php?action=update&amp;id=" . $fileDetail->mat_id[0] . "#filedetailsAnchor\" name=\"filedetailsForm\" enctype=\"multipart/form-data\"><input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"100000000\"><input type=\"hidden\" name=\"maxCustom\" value=\"" . $projectDetail->pro_upload_max[0] . "\">";
    if ($error4 != "") {
        $block4->headingError($strings["errors"]);
        $block4->contentError($error4);
    }
    $block4->headingForm($strings["ifc_update_file"]);
    $block4->openContent();
    $block4->contentTitle($strings["details"]);
    echo "\r\n\t<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\"></td><td class=\"odd\">" . $strings["version_increm"] . "<br>\r\n\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n\t<tr><td align=\"right\">0.01</td><td width=\"30\" align=\"right\"><input name=\"change_file_version\" type=\"radio\" value=\"0.01\"></td></tr>\r\n\t<tr><td align=\"right\">0.1</td><td width=\"30\" align=\"right\"><input name=\"change_file_version\" type=\"radio\" value=\"0.1\" checked></td></tr>\r\n\t<tr><td align=\"right\">1.0</td><td width=\"30\" align=\"right\"><input name=\"change_file_version\" type=\"radio\" value=\"1.0\"></td></tr>\r\n\t</table>\r\n\t</td></tr>";
    echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["status"] . " :</td><td><select name=\"statusField\">";
    $comptSta = count($statusFile);
    for ($i = 0; $i < $comptSta; $i++) {
        if ($i == "2") {
Example #27
0
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */
$projectSite = "true";
$checkSession = true;
require_once "../includes/library.php";
$bouton[2] = "over";
$titlePage = $strings["team_tasks"];
require_once "include_header.php";
$tmpquery = "WHERE tas.project = '" . $_SESSION['projectSession'] . "' AND tas.assigned_to != '0' AND tas.published = '0' AND tas.milestone <> '0' AND mem.organization = '1' ORDER BY tas.name";
$listTasks = new request();
$listTasks->openTasks($tmpquery);
$comptListTasks = count($listTasks->tas_id);
$block1 = new block();
$block1->headingForm($strings["team_tasks"]);
if ($comptListTasks != "0") {
    if ($activeJpgraph == "true") {
        // show the expanded or compact Gantt Chart
        if ($_GET['base'] == 1) {
            echo "<a href='showallteamtasks.php'>expand</a><br>";
        } else {
            echo "<a href='showallteamtasks.php?base=1'>compact</a><br>";
        }
        echo "<img src=\"graphtasks.php?project=" . $projectDetail->pro_id[0] . '&amp;base=' . $_GET['base'] . "\" alt=\"\"><br>\r\n<span class=\"listEvenBold\">Powered by <a href=\"http://www.aditus.nu/jpgraph/\" target=\"_blank\">JpGraph</a></span><br><br>";
    }
    echo "<table cellspacing=\"0\" width=\"90%\" border=\"0\" cellpadding=\"3\" cols=\"4\" class=\"listing\">\r\n<tr><th class=\"active\">" . $strings["name"] . "</th><th>" . $strings["description"] . "</th><th>" . $strings["status"] . "</th><th>" . $strings["due"] . "</th></tr>";
    for ($i = 0; $i < $comptListTasks; $i++) {
        if (!($i % 2)) {
            $class = "odd";
Example #28
0
$tmpquery = "WHERE pro.id = '{$id}'";
$projectDetail = new request();
$projectDetail->openProjects($tmpquery);
$comptProjectDetail = count($projectDetail->pro_id);
if ($comptProjectDetail == "0") {
    headerFunction("../projects/listprojects.php?msg=blank&" . session_name() . "=" . session_id());
    exit;
}
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
$blockPage->itemBreadcrumbs($strings["team_members"]);
$blockPage->closeBreadcrumbs();
$block1 = new block();
$block1->form = "saM";
$block1->openForm("../teams/listusers.php?" . session_name() . "=" . session_id() . "&id={$id}#" . $block1->form . "Anchor");
$block1->heading($strings["team_members"]);
$block1->openPaletteIcon();
if ($idSession == $projectDetail->pro_owner[0] || $profilSession == "5") {
    $block1->paletteIcon(0, "add", $strings["add"]);
    $block1->paletteIcon(1, "remove", $strings["delete"]);
    if ($sitePublish == "true") {
        $block1->paletteIcon(2, "add_projectsite", $strings["add_project_site"]);
        $block1->paletteIcon(3, "remove_projectsite", $strings["remove_project_site"]);
    }
}
$block1->paletteIcon(4, "info", $strings["view"]);
$block1->paletteIcon(5, "email", $strings["email"]);
$block1->closePaletteIcon();
Example #29
0
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
if ($task != "0") {
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../tasks/listtasks.php?project=" . $projectDetail->pro_id[0], $strings["tasks"], in));
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../tasks/viewtask.php?id=" . $taskDetail->tas_id[0], $taskDetail->tas_name[0], in));
}
$blockPage->itemBreadcrumbs($strings["unlink_files"]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "saC";
$block1->openForm("../linkedcontent/deletefiles.php?project={$project}&task={$task}&action=delete&id={$id}&sendto={$sendto}&" . session_name() . "=" . session_id());
$block1->heading($strings["unlink_files"]);
$block1->openContent();
$block1->contentTitle($strings["delete_following"]);
$id = str_replace("**", ",", $id);
$tmpquery = "WHERE fil.id IN({$id}) ORDER BY fil.name";
$listFiles = new request();
$listFiles->openFiles($tmpquery);
$comptListFiles = count($listFiles->fil_id);
for ($i = 0; $i < $comptListFiles; $i++) {
    echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td>" . $listFiles->fil_name[$i] . "</td></tr>";
}
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td><input type=\"SUBMIT\" value=\"" . $strings["delete"] . "\">&#160;<input type=\"BUTTON\" value=\"" . $strings["cancel"] . "\" onClick=\"history.back();\"></td></tr>";
$block1->closeContent();
Example #30
0
    echo block::getBlock('Startseite Headertext');
} else {
    echo '<h1>' . $this->get('name') . '</h1>';
}
?>
        		</div>
        	</div>
        </div>
    </section>
    
    <div class="container">
    	<div class="row">
        	<div class="col-lg-12">
                <section id="content">
                	<?php 
echo block::getBlock('Startseite 3er Box');
?>
                    
                    <div class="row">
        				<div class="col-md-8">
               				<?php 
echo dyn::get('content');
?>
 
                    	</div>
        				<div class="col-md-4">
                        	<?php 
if (navigation::getCategoryById($this->get('id'))) {
    echo '<h2>Navigation</h2>';
    echo '<ul class="subnav">';
    foreach (navigation::getCategoryById($this->get('id')) as $subnavi) {