当前位置: 首页>>代码示例>>PHP>>正文


PHP list_link函数代码示例

本文整理汇总了PHP中list_link函数的典型用法代码示例。如果您正苦于以下问题:PHP list_link函数的具体用法?PHP list_link怎么用?PHP list_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了list_link函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: link_to

        <?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>&nbsp;
      <em><?php 
echo excerpt($list->description, 100);
?>
</em>
    </td>
    
  </tr>
</table>
开发者ID:silky,项目名称:littlesis,代码行数:31,代码来源:_listoneliner.php

示例2: picto_tag

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'])) {
开发者ID:snouhaud,项目名称:camptocamp.org,代码行数:31,代码来源:_mobile_list_body.php

示例3: use_helper

<?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');
开发者ID:snouhaud,项目名称:camptocamp.org,代码行数:31,代码来源:_list_body.php

示例4: make_json_result

    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);
开发者ID:BGCX261,项目名称:zishashop-svn-to-git,代码行数:31,代码来源:group_buy.php

示例5: use_helper

<?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'])) {
开发者ID:snouhaud,项目名称:camptocamp.org,代码行数:31,代码来源:_list_body.php

示例6: pager_meta

<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 
}
?>
开发者ID:silky,项目名称:littlesis,代码行数:30,代码来源:_listresults.php

示例7: admin_log

            /* 记录日志 */
            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') {
开发者ID:netroby,项目名称:ecshop,代码行数:31,代码来源:suppliers_goods.php

示例8: admin_log

            /* 记录日志 */
            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') {
开发者ID:firsteam,项目名称:falcons,代码行数:31,代码来源:goods.php

示例9: use_helper

<?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>
开发者ID:snouhaud,项目名称:camptocamp.org,代码行数:22,代码来源:_mobile_list_body.php

示例10: foreach

    $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) {
开发者ID:snouhaud,项目名称:camptocamp.org,代码行数:31,代码来源:_association.php

示例11: use_helper

<?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']) : '';
开发者ID:snouhaud,项目名称:camptocamp.org,代码行数:31,代码来源:_list_body.php

示例12: use_helper

<?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 
开发者ID:snouhaud,项目名称:camptocamp.org,代码行数:31,代码来源:_mobile_list_body.php

示例13: foreach

 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, '&nbsp;');
     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']));
开发者ID:snouhaud,项目名称:camptocamp.org,代码行数:31,代码来源:_linked_outings.php

示例14: use_helper

<?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) {
开发者ID:snouhaud,项目名称:camptocamp.org,代码行数:31,代码来源:_list_body.php

示例15: use_helper

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']));
?>
开发者ID:snouhaud,项目名称:camptocamp.org,代码行数:30,代码来源:_mobile_list_body.php


注:本文中的list_link函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。