<?php } else { ?> <?php echo link_to($action['name'], $action['url'], 'class=small' . (isset($action['options']) ? ' ' . $action['options'] : '')); ?> <br /> <?php } ?> <?php } ?> </td> <?php } ?> <td> <span class="list_link text_big"><?php echo list_link($list); ?> </span> <em><?php echo excerpt($list->description, 100); ?> </em> </td> </tr> </table>
if (strlen($item['geom_wkt'])) { $has_gps_track = picto_tag('action_gps', __('has GPS track')); } else { $has_gps_track = ''; } // in some cases (ticket #337, we have to add best summit name with a second request. It is // then located in $item['name'] $summit_2 = $item['associations'][0]['Summit'][0]['SummitI18n'][0]; if (isset($item['name'])) { $summit_name = $item['name']; } else { $summit_name = $summit_2['name']; } echo list_link($item_i18n, 'routes', $summit_name) . ' ' . $has_gps_track; if (isset($item['name']) && $summit_name != $summit_2['name']) { $link = list_link($summit_2, 'summits'); echo '<br /><small>', __('route linked with', array('%1%' => $link)), '</small>'; } ?> </div> <div> <?php $height_diff_up = is_scalar($item['height_diff_up']) ? $item['height_diff_up'] . __('meters') : NULL; if ($height_diff_up != NULL && is_scalar($item['difficulties_height'])) { $height_diff_up .= ' (' . $item['difficulties_height'] . __('meters') . ')'; } echo _implode(' - ', array(displayWithSuffix($item['max_elevation'], 'meters'), get_paginated_value($item['facing'], 'app_routes_facings'), $height_diff_up, field_route_ratings_data($item, false))); ?> </div> <div><?php if (isset($item['linked_docs'])) {
<?php use_helper('Field', 'Link'); $item_i18n = $item['BookI18n'][0]; ?> <td><?php echo list_link($item_i18n, 'books'); ?> </td> <td><?php echo $item['author']; ?> </td> <td><?php echo $item['editor']; ?> </td> <td><?php echo $item['publication_date']; ?> </td> <td><?php echo get_paginated_activities($item['activities']); ?> </td> <td><?php echo get_paginated_value_from_list($item['book_types'], 'mod_books_book_types_list'); ?> </td> <td><?php echo get_paginated_value_from_list($item['langs'], 'app_languages_book');
make_json_result($smarty->fetch('group_buy_list.htm'), '', array('filter' => $list['filter'], 'page_count' => $list['page_count'])); } elseif ($_REQUEST['act'] == 'add' || $_REQUEST['act'] == 'edit') { /* 初始化/取得团购活动信息 */ if ($_REQUEST['act'] == 'add') { $group_buy = array('act_id' => 0, 'start_time' => date('Y-m-d', time() + 86400), 'end_time' => date('Y-m-d', time() + 4 * 86400), 'price_ladder' => array(array('amount' => 0, 'price' => 0))); } else { $group_buy_id = intval($_REQUEST['id']); if ($group_buy_id <= 0) { die('invalid param'); } $group_buy = group_buy_info($group_buy_id); } $smarty->assign('group_buy', $group_buy); /* 模板赋值 */ $smarty->assign('ur_here', $_LANG['add_group_buy']); $smarty->assign('action_link', list_link($_REQUEST['act'] == 'add')); $smarty->assign('cat_list', cat_list()); $smarty->assign('brand_list', get_brand_list()); /* 显示模板 */ assign_query_info(); $smarty->display('group_buy_info.htm'); } elseif ($_REQUEST['act'] == 'insert_update') { /* 取得团购活动id */ $group_buy_id = intval($_POST['act_id']); if (isset($_POST['finish']) || isset($_POST['succeed']) || isset($_POST['fail']) || isset($_POST['mail'])) { if ($group_buy_id <= 0) { sys_msg($_LANG['error_group_buy'], 1); } $group_buy = group_buy_info($group_buy_id); if (empty($group_buy)) { sys_msg($_LANG['error_group_buy'], 1);
<?php use_helper('Field', 'Link'); $item_i18n = $item['SiteI18n'][0]; ?> <td><input type="checkbox" value="<?php echo $item_i18n['id']; ?> " name="id[]"/></td> <td><?php echo list_link($item_i18n, 'sites'); ?> </td> <td><?php echo displayWithSuffix($item['elevation'], 'meters'); ?> </td> <td><?php echo $item['routes_quantity']; ?> </td> <td><?php echo get_paginated_value_from_list($item['site_types'], 'app_sites_site_types'); ?> </td> <td><?php echo get_paginated_value_from_list($item['rock_types'], 'mod_sites_rock_types_list'); ?> </td> <td><?php if (isset($item['linked_docs'])) {
<div class="section" style="display: block;"> <span class="section_title">Matches</span> </div> <div class="section_meta" style="display: block;"><?php echo pager_meta($list_pager); ?> </div> <div class="padded" style="display: block;"> <?php foreach ($list_pager->execute() as $list) { ?> <?php $list_link = str_replace("'", "\\'", list_link($list)); ?> <?php $innerHtml = '<span class="text_big">' . $list_link . '</span> ' . input_hidden_tag('list_id', $list->id); ?> <?php $innerHtml = str_replace('"', '\\\'', $innerHtml); ?> <?php include_partial('listoneliner', array('list' => $list, 'actions' => array(array('raw' => '<a href="javascript:void(0);" onclick="selectList(\'' . $innerHtml . '\', \'' . 'list' . '\');">select</a>')))); ?> <?php } ?>
/* 记录日志 */ admin_log('', 'batch_restore', 'goods'); } elseif ($_POST['type'] == 'drop') { /* 检查权限 */ admin_priv('remove_back'); delete_goods($goods_id); /* 记录日志 */ admin_log('', 'batch_remove', 'goods'); } } /* 清除缓存 */ clear_cache_files(); if ($_POST['type'] == 'drop' || $_POST['type'] == 'restore') { $link[] = array('href' => 'goods.php?act=trash', 'text' => $_LANG['11_goods_trash']); } else { $link[] = list_link(true, $code); } sys_msg($_LANG['batch_handle_ok'], 0, $link); } elseif ($_REQUEST['act'] == 'show_image') { if (isset($GLOBALS['shop_id']) && $GLOBALS['shop_id'] > 0) { $img_url = $_GET['img_url']; } else { if (strpos($_GET['img_url'], 'http://') === 0) { $img_url = $_GET['img_url']; } else { $img_url = '../' . $_GET['img_url']; } } $smarty->assign('img_url', $img_url); $smarty->display('goods_show_image.htm'); } elseif ($_REQUEST['act'] == 'edit_goods_name') {
/* 记录日志 */ admin_log('', 'batch_restore', 'goods'); } elseif ($_POST['type'] == 'drop') { /* 检查权限 */ admin_priv('remove_back'); delete_goods($goods_id); /* 记录日志 */ admin_log('', 'batch_remove', 'goods'); } } /* 清除缓存 */ clear_cache_files(); if ($_POST['type'] == 'drop' || $_POST['type'] == 'restore') { $link[] = array('href' => 'goods.php?act=trash', 'text' => $_LANG['11_goods_trash']); } else { $link[] = list_link(true, $code, $supplier_status); } sys_msg($_LANG['batch_handle_ok'], 0, $link); } elseif ($_REQUEST['act'] == 'show_image') { if (isset($GLOBALS['shop_id']) && $GLOBALS['shop_id'] > 0) { $img_url = $_GET['img_url']; } else { if (strpos($_GET['img_url'], 'http://') === 0) { $img_url = $_GET['img_url']; } else { $img_url = '../' . $_GET['img_url']; } } $smarty->assign('img_url', $img_url); $smarty->display('goods_show_image.htm'); } elseif ($_REQUEST['act'] == 'edit_goods_name') {
<?php use_helper('Field', 'Link'); $item_i18n = $item['PortalI18n'][0]; $item_id = $item_i18n['id']; ?> <div class="right"><?php echo get_paginated_activities($item['activities']); ?> </div> <div><?php echo list_link($item_i18n, 'portals'); ?> </div> <div><?php include_partial('documents/regions4list', array('geoassociations' => $item['geoassociations'])); ?> </div> <div><?php echo picto_tag('picto_images', __('nb_linked_images')), ' ', isset($item['nb_images']) ? $item['nb_images'] : '0', ' ', picto_tag('action_comment', __('nb_comments')), ' ', isset($item['nb_comments']) ? link_to($item['nb_comments'], '@document_comment?module=portals&id=' . $item_i18n['id'] . '&lang=' . $item_i18n['culture']) : '0'; ?> </div>
$fixed_type = ''; } if (count($associated_documents)) { echo '<ul id="' . $id_list_associated_docs . '">'; foreach ($associated_documents as $doc) { $doc_id = $doc->get('id'); $module = $doc['module']; if (empty($fixed_type)) { $type = c2cTools::Module2Letter($module) . 'c'; } else { $type = $fixed_type; } $idstring = $type . '_' . $doc_id; echo '<li id="' . $idstring . '">'; echo picto_tag('picto_' . $module, __($module)); echo ' ' . list_link($doc, $module); if ($module == 'outings') { echo ' - ' . field_activities_data($doc, array('raw' => true)) . ' - ' . field_semantic_date_data($doc, 'date'); } if ($show_link_to_delete) { $strict = $type == 'cc' ? 0 : 1; if (empty($fixed_type)) { echo c2c_link_to_delete_element($type, $doc_id, $id, false, $strict); } else { echo c2c_link_to_delete_element($type, $id, $doc_id, true, $strict); } } echo '</li>'; } echo '</ul>'; } elseif ($show_link_tool) {
<?php use_helper('Field', 'Link'); $item_i18n = $item['SummitI18n'][0]; ?> <td><input type="checkbox" value="<?php echo $item_i18n['id']; ?> " name="id[]"/></td> <td><?php echo list_link($item_i18n, 'summits'); ?> </td> <td><?php echo displayWithSuffix($item['elevation'], 'meters'); ?> </td> <td><?php echo get_paginated_value($item['summit_type'], 'app_summits_summit_types'); ?> </td> <td><?php include_partial('documents/regions4list', array('geoassociations' => $item['geoassociations'])); ?> </td> <td><?php echo isset($item['nb_images']) ? $item['nb_images'] : ''; ?> </td> <td><?php echo isset($item['nb_comments']) ? link_to($item['nb_comments'], '@document_comment?module=summits&id=' . $item_i18n['id'] . '&lang=' . $item_i18n['culture']) : '';
<?php use_helper('General', 'Field', 'Link'); $item_i18n = $item['ParkingI18n'][0]; ?> <div><?php echo list_link($item_i18n, 'parkings'); ?> </div> <div><?php $snow_clearance_rating = $item['snow_clearance_rating']; $elevation_field = ''; if (isset($item['lowest_elevation']) && is_scalar($item['lowest_elevation']) && $item['lowest_elevation'] != $item['elevation'] && $snow_clearance_rating != 4) { $elevation_field = $item['lowest_elevation'] . __('meters') . __('range separator') . $item['elevation'] . __('meters'); } else { if (isset($item['elevation']) && is_scalar($item['elevation'])) { $elevation_field = $item['elevation'] . __('meters'); } } $snow_field = ''; if (is_int($snow_clearance_rating) && $snow_clearance_rating != 4) { $snow_field = get_paginated_value($item['snow_clearance_rating'], 'mod_parkings_snow_clearance_ratings_list'); } echo _implode(' - ', array($elevation_field, field_pt_picto_if_set($item, true) . ' ' . get_paginated_value($item['public_transportation_rating'], 'app_parkings_public_transportation_ratings'), $snow_field)); ?> </div> <div><?php include_partial('documents/regions4list', array('geoassociations' => $item['geoassociations'])); ?> </div> <div><?php
foreach ($items as $item) { echo '<tr><td>'; $timedate = $item['date']; if ($is_mobile_version) { $text_date = $timedate; } else { $text_date = format_date($timedate, 'D'); } if ($timedate != $date || $is_mobile_version) { echo '<time datetime="' . $timedate . '">' . $text_date . '</time>'; $date = $timedate; } echo '</td><td>'; echo get_paginated_activities($item['activities'], false, ' '); echo '</td><td>'; echo list_link($item['OutingI18n'][0], 'outings'); $max_elevation = displayWithSuffix($item['max_elevation'], 'meters'); if (!$is_mobile_version) { echo '</td><td>'; } if (!empty($max_elevation)) { if ($is_mobile_version) { echo ' - '; } echo $max_elevation; } if (!$is_mobile_version) { echo '</td><td>'; } if (isset($item['nb_images'])) { $images = picto_tag('picto_images_light', format_number_choice('[1]1 image|(1,+Inf]%1% images', array('%1%' => $item['nb_images']), $item['nb_images']));
<?php use_helper('Field', 'Link'); $item_i18n = $item['HutI18n'][0]; ?> <td><input type="checkbox" value="<?php echo $item_i18n['id']; ?> " name="id[]"/></td> <td><?php echo list_link($item_i18n, 'huts'); ?> </td> <td><?php echo displayWithSuffix($item['elevation'], 'meters'); ?> </td> <td><?php echo get_paginated_value($item['shelter_type'], 'mod_huts_shelter_types_list'); ?> </td> <td><?php $staffed_capacity = $item['staffed_capacity']; if (is_scalar($staffed_capacity) && $staffed_capacity > 0) { echo $staffed_capacity; } ?> </td> <td><?php $unstaffed_capacity = $item['unstaffed_capacity']; if (is_scalar($unstaffed_capacity) && $unstaffed_capacity > 0) {
use_helper('Date', 'General', 'Field', 'Link'); if (strlen($item['geom_wkt'])) { $has_gps_track = picto_tag('action_gps', __('has GPS track')); } else { $has_gps_track = ''; } $item_i18n = $item['OutingI18n'][0]; $activities = $item['activities']; ?> <div class="right"><?php echo get_paginated_activities($activities); ?> </div> <div><?php echo list_link($item_i18n, 'outings') . ' ' . $has_gps_track; ?> </div> <div> <?php echo _implode(' - ', array(format_date($item['date'], 'D'), link_to($item['creator'], '@document_by_id?module=users&id=' . $item['creator_id']))); ?> </div> <div> <?php echo _implode(' - ', array(displayWithSuffix($item['max_elevation'], 'meters'), displayWithSuffix($item['height_diff_up'], 'meters'), isset($item['linked_routes']) ? field_route_ratings_data($item, false, false, false, 'html', $activities) : '', get_paginated_value($item['conditions_status'], 'mod_outings_conditions_statuses_list'), field_frequentation_picto_if_set($item, true))); ?> </div> <div><?php include_partial('documents/regions4list', array('geoassociations' => $item['geoassociations'])); ?>
<?php use_helper('Field', 'Link'); $item_i18n = $item['AreaI18n'][0]; ?> <div><?php echo list_link($item_i18n, 'areas'); ?> </div> <div><?php echo get_paginated_value($item['area_type'], 'mod_areas_area_types_list'); ?> </div> <div><?php echo picto_tag('picto_images', __('nb_linked_images')), ' ', isset($item['nb_images']) ? $item['nb_images'] : '0', ' ', picto_tag('action_comment', __('nb_comments')), ' ', isset($item['nb_comments']) ? link_to($item['nb_comments'], '@document_comment?module=areas&id=' . $item_i18n['id'] . '&lang=' . $item_i18n['culture']) : '0'; ?> </div>
/** * 编辑预售活动 */ function action_edit() { $user = $GLOBALS['user']; $_CFG = $GLOBALS['_CFG']; $_LANG = $GLOBALS['_LANG']; $smarty = $GLOBALS['smarty']; $db = $GLOBALS['db']; $ecs = $GLOBALS['ecs']; $user_id = $_SESSION['user_id']; $pre_sale_id = intval($_REQUEST['id']); if ($pre_sale_id <= 0) { die('invalid param'); } $pre_sale = pre_sale_info($pre_sale_id); $smarty->assign('pre_sale', $pre_sale); /* 模板赋值 */ $smarty->assign('ur_here', $_LANG['add_pre_sale']); $smarty->assign('action_link', list_link($action == 'add')); $smarty->assign('cat_list', cat_list()); $smarty->assign('brand_list', get_brand_list()); /* 显示模板 */ assign_query_info(); $smarty->display('pre_sale_info.htm'); }
<tr> <td><?php echo list_link($object); ?> </td> <td><?php echo $object['LsListEntity'][0]['num']; ?> </td> <td><?php echo $object['description']; ?> </td> </tr>
<?php use_helper('Field', 'Link'); $item_i18n = $item['ProductI18n'][0]; ?> <div><?php echo list_link($item_i18n, 'products'); ?> </div> <div><?php echo displayWithSuffix($item['elevation'], 'meters'), ' - ', get_paginated_value_from_list($item['product_type'], 'mod_products_types_list'); if (isset($item['linked_docs'])) { echo '<div>', __('access'), ' '; include_partial('parkings/parkings4list', array('parkings' => $item['linked_docs'])); echo '</div>'; } ?> <div><?php include_partial('documents/regions4list', array('geoassociations' => $item['geoassociations'])); ?> </div> <div><?php echo picto_tag('picto_images', __('nb_linked_images')), ' ', isset($item['nb_images']) ? $item['nb_images'] : '0', ' ', picto_tag('action_comment', __('nb_comments')), ' ', isset($item['nb_comments']) ? link_to($item['nb_comments'], '@document_comment?module=products&id=' . $item_i18n['id'] . '&lang=' . $item_i18n['culture']) : '0'; ?> </div>
<?php use_helper('Field', 'Link'); $item_i18n = $item['MapI18n'][0]; ?> <td><?php echo list_link($item_i18n, 'maps'); ?> </td> <td><?php echo $item['code']; ?> </td> <td><?php echo get_paginated_value($item['scale'], 'mod_maps_scales_list'); ?> </td> <td><?php echo get_paginated_value($item['editor'], 'mod_maps_editors_list'); ?> </td> <td><?php echo isset($item['nb_images']) ? $item['nb_images'] : ''; ?> </td> <td><?php echo isset($item['nb_comments']) ? link_to($item['nb_comments'], '@document_comment?module=maps&id=' . $item_i18n['id'] . '&lang=' . $item_i18n['culture']) : ''; ?> </td>
function agency_goods_list() { /* 过滤查询 */ $code = empty($_REQUEST['extension_code']) ? '' : trim($_REQUEST['extension_code']); $code = $code == 'virtual_card' ? 'virtual_card' : ''; $cat_id = isset($_POST['cat_id']) ? intval($_POST['cat_id']) : 0; $brand_id = isset($_POST['brand_id']) ? intval($_POST['brand_id']) : 0; $keyword = isset($_POST['keyword']) ? trim($_POST['keyword']) : ''; $GLOBALS['smarty']->assign('action_link', list_link($is_add, $code)); //$GLOBALS['smarty']->assign('cat_list', cat_list(0, $cat_id)); // 注释 2015-03-19 代理商跟主站的分类分开 /*ccx 2015-03-18 代理商显示代理商自己的商品分类 start */ $GLOBALS['smarty']->assign('cat_list', cat_list_ccx(0, $cat_id)); /*ccx 2015-03-18 代理商显示代理商自己的商品分类 end */ $GLOBALS['smarty']->assign('brand_list', get_brand_list()); $GLOBALS['smarty']->assign('search_keyword', $keyword); $GLOBALS['smarty']->assign('brand_id', $brand_id); $filter = array(); $filter['cat_id'] = $cat_id; $filter['brand_id'] = $brand_id; $filter['keyword'] = $keyword; $filter['sort_by'] = empty($_REQUEST['sort_by']) ? 'goods_id' : trim($_REQUEST['sort_by']); $filter['sort_order'] = empty($_REQUEST['sort_order']) ? 'DESC' : trim($_REQUEST['sort_order']); $where = ' WHERE is_delete = 0 and admin_agency_id = 0 '; if ($code) { $where .= " AND is_real = 0 "; } else { $where .= " AND is_real = 1 "; } if ($cat_id > 0) { $where .= " AND cat_id = '{$cat_id}' "; } if ($brand_id > 0) { $where .= " AND brand_id = '{$brand_id}' "; } if ($keyword) { $where .= ' AND goods_name like \'%' . mysql_real_escape_string($keyword) . '%\'' . ' OR goods_sn like \'%' . $keyword . '%\''; } $admin_agency_id = admin_agency_id(); if ($admin_agency_id) { $where .= " AND (SELECT goods_id FROM " . $GLOBALS['ecs']->table('goods') . " WHERE admin_agency_id = {$admin_agency_id} and host_goods_id = g.goods_id limit 1) is null"; } /* 获得总记录数据 */ $sql = 'SELECT COUNT(*) FROM ' . $GLOBALS['ecs']->table('goods') . ' as g' . $where; $filter['record_count'] = $GLOBALS['db']->getOne($sql); $filter = page_and_size($filter); /* 获得商品数据 */ $arr = array(); $sql = 'SELECT goods_id,goods_name,goods_sn,shop_price,costing_price' . ' FROM ' . $GLOBALS['ecs']->table('goods') . ' as g ' . $where . ' ORDER BY goods_id desc '; $res = $GLOBALS['db']->selectLimit($sql, $filter['page_size'], $filter['start']); while ($rows = $GLOBALS['db']->fetchRow($res)) { $arr[] = $rows; } //是否已添加 foreach ($arr as $good_k => $good_v) { $goods_id_arr[] = $good_v['goods_id']; $goods_price_arr[] = $good_v['shop_price']; } $filter['goods_id_arr'] = json_encode($goods_id_arr); $filter['goods_price_arr'] = json_encode($goods_price_arr); //dump($arr); return array('goods_res' => $arr, 'filter' => $filter, 'page_count' => $filter['page_count'], 'record_count' => $filter['record_count']); }
<?php use_helper('Field', 'Link'); $item_i18n = $item['ArticleI18n'][0]; ?> <td><?php echo list_link($item_i18n, 'articles'); ?> </td> <td><?php echo get_paginated_value_from_list($item['categories'], 'mod_articles_categories_list'); ?> </td> <td><?php echo get_paginated_activities($item['activities']); ?> </td> <td><?php echo get_paginated_value($item['article_type'], 'mod_articles_article_types_list'); ?> </td> <td><?php echo isset($item['nb_images']) ? $item['nb_images'] : ''; ?> </td> <td><?php echo isset($item['nb_comments']) ? link_to($item['nb_comments'], '@document_comment?module=articles&id=' . $item_i18n['id'] . '&lang=' . $item_i18n['culture']) : ''; ?> </td>
/** * 编辑客服信息 */ function action_edit() { $user = $GLOBALS['user']; $_CFG = $GLOBALS['_CFG']; $_LANG = $GLOBALS['_LANG']; $smarty = $GLOBALS['smarty']; $db = $GLOBALS['db']; $ecs = $GLOBALS['ecs']; $user_id = $_SESSION['user_id']; /* 初始化/取得客服信息 */ $cus_id = intval($_REQUEST['id']); if ($cus_id <= 0) { die('invalid param'); } $customer = customer_info($cus_id); $smarty->assign('customer', $customer); /* 模板赋值 */ $smarty->assign('ur_here', $_LANG['add_customer']); $smarty->assign('action_link', list_link($_REQUEST['act'] == 'add')); /* 显示模板 */ assign_query_info(); $smarty->display('customer_info.htm'); }
/* 记录上一次选择的分类和品牌 */ setcookie('ECSCP[last_choose]', $catgory_id . '|' . $brand_id, gmtime() + 86400); /* 清空缓存 */ clear_cache_files(); /* 提示页面 */ $link = array(); if (check_goods_specifications_exist($goods_id)) { $link[0] = array('href' => 'goods.php?act=product_list&goods_id=' . $goods_id, 'text' => $_LANG['product']); } if ($code == 'virtual_card') { $link[1] = array('href' => 'virtual_card.php?act=replenish&goods_id=' . $goods_id, 'text' => $_LANG['add_replenish']); } if ($is_insert) { $link[2] = add_link($code); } $link[3] = list_link($is_insert, $code); //$key_array = array_keys($link); for ($i = 0; $i < count($link); $i++) { $key_array[] = $i; } krsort($link); $link = array_combine($key_array, $link); sys_msg($is_insert ? $_LANG['add_goods_ok'] : $_LANG['edit_goods_ok'], 0, $link); } elseif ($_REQUEST['act'] == 'batch') { $code = empty($_REQUEST['extension_code']) ? '' : trim($_REQUEST['extension_code']); /* 取得要操作的商品编号 */ $goods_id_arr = !empty($_POST['checkboxes']) ? $_POST['checkboxes'] : 0; $goods_id = !empty($_POST['checkboxes']) ? join(',', $_POST['checkboxes']) : 0; if (isset($_POST['type'])) { /* 放入回收站 */ if ($_POST['type'] == 'trash') {
$sort_flag = sort_flag($list['filter']); $smarty->assign($sort_flag['tag'], $sort_flag['img']); assign_query_info(); $smarty->assign('action_link', array('text' => $_LANG['topic_add'], 'href' => 'topic.php?act=add')); $smarty->display('topic_list.htm'); } /* 添加,编辑 */ if ($_REQUEST['act'] == 'add' || $_REQUEST['act'] == 'edit') { admin_priv('topic_manage'); $isadd = $_REQUEST['act'] == 'add'; $smarty->assign('isadd', $isadd); $topic_id = empty($_REQUEST['topic_id']) ? 0 : intval($_REQUEST['topic_id']); include_once ROOT_PATH . 'includes/fckeditor/fckeditor.php'; // 包含 html editor 类文件 $smarty->assign('ur_here', $_LANG['09_topic']); $smarty->assign('action_link', list_link($isadd)); $smarty->assign('cat_list', cat_list(0, 1)); $smarty->assign('brand_list', get_brand_list()); $smarty->assign('cfg_lang', $_CFG['lang']); $smarty->assign('topic_style_color', $topic_style_color); $width_height = get_toppic_width_height(); if (isset($width_height['pic']['width']) && isset($width_height['pic']['height'])) { $smarty->assign('width_height', sprintf($_LANG['tips_width_height'], $width_height['pic']['width'], $width_height['pic']['height'])); } if (isset($width_height['title_pic']['width']) && isset($width_height['title_pic']['height'])) { $smarty->assign('title_width_height', sprintf($_LANG['tips_title_width_height'], $width_height['title_pic']['width'], $width_height['title_pic']['height'])); } if (!$isadd) { $sql = 'SELECT * FROM ' . $ecs->table('topic') . " WHERE topic_id = '{$topic_id}'"; $topic = $db->getRow($sql); $topic['start_time'] = local_date('Y-m-d', $topic['start_time']);
<a name="picking"></a> <h2>2. Pick Someone to Profile</h2> <span class="text_big"> <ul class="spaced"> <li> Pick a powerful person who either doesn't have a profile or has a stub profile on LittleSis. Names from the following lists are particularly helpful: <br /> <br /> <?php foreach (array(21, 3, 4, 11, 12) as $listId) { ?> <?php echo list_link(Doctrine::getTable('LsList')->find($listId)); ?> <br /> <?php } ?> </li> </ul> <br /> </span> <a name="stub"></a> <h2>3. Create a Stub Profile</h2>