本文整理匯總了PHP中block類的典型用法代碼示例。如果您正苦於以下問題:PHP block類的具體用法?PHP block怎麽用?PHP block使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了block類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: intval
/**
* '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;
}
示例2: setEncodeInfo
/**
* 處理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);
}
示例3: onSide
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();
}
示例4: onDefault
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();
}
示例5: onDefault
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();
}
示例6: onDefault
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();
}
示例7: getParams
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;
}
示例8: render_region
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();
}
}
}
示例9: onDefault
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();
}
示例10: onDefault
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();
}
示例11: onDefault
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();
}
示例12: block
$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();
示例13: block
} 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'> </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);
示例14: view
// 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();
示例15: block
$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"]);