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


PHP smarty_function_make_link函数代码示例

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


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

示例1: smarty_core_load_plugins

<?php

/* Smarty version 2.6.11, created on 2015-11-10 14:41:12
   compiled from en/default/group/add.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'make_link', 'en/default/group/add.tpl', 1, false), array('function', 'error_validator', 'en/default/group/add.tpl', 8, false), array('function', 'html_options', 'en/default/group/add.tpl', 15, false), array('block', 'form', 'en/default/group/add.tpl', 2, false))), $this);
echo smarty_function_make_link(array('controller' => 'group', 'action' => 'add', 'assign' => 'form_action'), $this);
?>

<?php 
$this->_tag_stack[] = array('form', array('action' => $this->_tpl_vars['form_action']));
smarty_block_form($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
    ob_start();
    ?>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td>Group Name</td>
    <td>
	<input type="text" name="group[name]" id="group_name" value="<?php 
    echo $this->_tpl_vars['group']['name'];
    ?>
"/>
	<?php 
    echo smarty_function_error_validator(array('field_name' => 'name'), $this);
    ?>

    </td>
  </tr>
  <tr>
    <td>Layout</td>
开发者ID:halaby,项目名称:smlite-framework,代码行数:31,代码来源:%%AD^ADF^ADFFFC4B%%add.tpl.php

示例2: smarty_core_load_plugins

<?php

/* Smarty version 2.6.11, created on 2015-11-10 14:34:46
   compiled from en/default/useradmin/edit.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'make_link', 'en/default/useradmin/edit.tpl', 1, false), array('function', 'error_validator', 'en/default/useradmin/edit.tpl', 8, false), array('function', 'html_options', 'en/default/useradmin/edit.tpl', 36, false), array('block', 'form', 'en/default/useradmin/edit.tpl', 2, false))), $this);
echo smarty_function_make_link(array('controller' => 'useradmin', 'action' => 'edit', 'id' => $this->_tpl_vars['user']['id'], 'assign' => 'form_action'), $this);
?>

<?php 
$this->_tag_stack[] = array('form', array('action' => $this->_tpl_vars['form_action']));
smarty_block_form($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
    ob_start();
    ?>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td>Email</td>
    <td>
	<input type="text" name="user[email]" id="user_email" value="<?php 
    echo $this->_tpl_vars['user']['email'];
    ?>
"/>
	<?php 
    echo smarty_function_error_validator(array('field_name' => 'email'), $this);
    ?>

    </td>
  </tr>
  <tr>
    <td>Password</td>
开发者ID:halaby,项目名称:smlite-framework,代码行数:31,代码来源:%%2B^2BE^2BECED33%%edit.tpl.php

示例3: smarty_function_make_link

            ?>
            <?php 
            if ($this->_tpl_vars['val']['is_copy']) {
                ?>
                <?php 
                $this->assign('tr_tag', "#FFFF99");
                ?>
            <?php 
            }
            ?>
            <tr bgcolor="<?php 
            echo $this->_tpl_vars['tr_tag'];
            ?>
">
                <td align="center" rowspan="2"><a href="<?php 
            echo smarty_function_make_link(array('action' => 'action_informationStatus_informationData', 'getTags' => is_array($_tmp = is_array($_tmp = "isid=") ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['val']['id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['val']['id'])) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['URLparam']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['URLparam'])), $this);
            ?>
"><?php 
            echo $this->_tpl_vars['val']['id'];
            ?>
</a></td>
                <td align="left"><?php 
            echo $this->_tpl_vars['val']['name'];
            ?>
</td>
                <td align="left"><?php 
            echo $this->_tpl_vars['val']['display_start_datetime'];
            ?>
</td>
                <!-- <td align="center" rowspan="2"><?php 
            echo $this->_tpl_vars['val']['user_search_conditions_id'];
开发者ID:noriotakei,项目名称:suraimu,代码行数:31,代码来源:%%7B^7BE^7BE5FD3D%%informationSearchList.tpl.php

示例4: smarty_core_load_plugins

<?php

/* Smarty version 2.6.11, created on 2015-11-10 14:34:13
   compiled from en/default/layouts/errors.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'make_link', 'en/default/layouts/errors.tpl', 10, false))), $this);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="<?php 
echo $this->_tpl_vars['HTML_ROOT'];
?>
view/en/default/images/style.css" rel="stylesheet"/>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Windows-1256"/>
</head>
<body>
<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['document'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<br/>
<a href="<?php 
echo smarty_function_make_link(array(), $this);
?>
" class="mylink">Back to Home Page</a>
</body>
</html>
开发者ID:halaby,项目名称:smlite-framework,代码行数:30,代码来源:%%03^033^033047DC%%errors.tpl.php

示例5: settype

    <th>備考</th>
    <th>実行状況</th>
    <th>作成日時</th>
    <th>削除</th>
    </tr>
    <?php 
    $_from = $this->_tpl_vars['dataList'];
    if (!is_array($_from) && !is_object($_from)) {
        settype($_from, 'array');
    }
    if (count($_from)) {
        foreach ($_from as $this->_tpl_vars['val']) {
            ?>
        <tr>
        <td><a href="<?php 
            echo smarty_function_make_link(array('action' => 'action_mailLog_ReservePointGrantData', 'getTags' => is_array($_tmp = "reserve_point_grant_id=") ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['val']['id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['val']['id'])), $this);
            ?>
" target="_blank"><?php 
            echo $this->_tpl_vars['val']['id'];
            ?>
</a></td>
        <td><?php 
            echo is_array($_tmp = $this->_tpl_vars['val']['update_user_point_datetime']) ? $this->_run_mod_handler('emoji', true, $_tmp) : smarty_modifier_emoji($_tmp);
            ?>
</td>
        <td><?php 
            echo is_array($_tmp = $this->_tpl_vars['val']['target_user_count']) ? $this->_run_mod_handler('emoji', true, $_tmp) : smarty_modifier_emoji($_tmp);
            ?>
</td>
        <td><?php 
            echo is_array($_tmp = $this->_tpl_vars['val']['point']) ? $this->_run_mod_handler('emoji', true, $_tmp) : smarty_modifier_emoji($_tmp);
开发者ID:noriotakei,项目名称:suraimu,代码行数:31,代码来源:%%C7^C72^C72F94EA%%reservePointGrantList.tpl.php

示例6: foreach

    if (count($_from)) {
        foreach ($_from as $this->_tpl_vars['val']) {
            ?>
        <tr>
        <?php 
            if ($this->_tpl_vars['val']['code'] == 1) {
                ?>
            <td><?php 
                echo $this->_tpl_vars['val']['code'];
                ?>
</td>
        <?php 
            } else {
                ?>
            <td><a href="<?php 
                echo smarty_function_make_link(array('action' => 'action_user_UserProfileFlagData', 'getTags' => is_array($_tmp = "user_profile_flag_code=") ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['val']['code']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['val']['code'])), $this);
                ?>
" target="_blank"><?php 
                echo $this->_tpl_vars['val']['code'];
                ?>
</a></td>
        <?php 
            }
            ?>
        <td><?php 
            echo $this->_tpl_vars['val']['name'];
            ?>
</td>
        <td><?php 
            echo $this->_tpl_vars['user_profile_flag_convert_code'][$this->_tpl_vars['val']['convert_code']];
            ?>
开发者ID:noriotakei,项目名称:suraimu,代码行数:31,代码来源:%%EB^EB4^EB40196C%%userProfileFlagList.tpl.php

示例7: settype

    ?>
view/images/icon_delete.gif"/> Delete</a></div>
<div class="div_text">Page: 
		<?php 
    $_from = $this->_tpl_vars['group']['__paging_pages'];
    if (!is_array($_from) && !is_object($_from)) {
        settype($_from, 'array');
    }
    if (count($_from)) {
        foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']) {
            ?>
			<?php 
            if ($this->_tpl_vars['v']) {
                ?>
			<a href="<?php 
                echo smarty_function_make_link(array('controller' => 'group', 'action' => 'getall', '__orderby' => $this->_tpl_vars['__orderby'], '__desc' => $this->_tpl_vars['__desc'], 'array' => $this->_tpl_vars['v']), $this);
                ?>
" class="mylink"><?php 
                echo $this->_tpl_vars['k'];
                ?>
</a>
			<?php 
            } else {
                ?>
			<b><u><font size="2"><?php 
                echo $this->_tpl_vars['k'];
                ?>
</font></u></b>
			<?php 
            }
            ?>
开发者ID:halaby,项目名称:smlite-framework,代码行数:31,代码来源:%%81^815^815354D7%%getall.tpl.php

示例8: smarty_function_math

        echo smarty_function_math(array('equation' => "(x / y) + 1", 'x' => count($this->_tpl_vars['duplicateUserDataList']), 'y' => 10, 'format' => "%.0f"), $this);
        ?>
">重複ユーザーID</th>
                    <?php 
        $_from = $this->_tpl_vars['duplicateUserDataList'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $this->_foreach['dataLoop'] = array('total' => count($_from), 'iteration' => 0);
        if ($this->_foreach['dataLoop']['total'] > 0) {
            foreach ($_from as $this->_tpl_vars['val']) {
                $this->_foreach['dataLoop']['iteration']++;
                ?>
                    <td style="padding:5px;">
                        <a href="<?php 
                echo smarty_function_make_link(array('action' => 'action_User_Detail', 'getTags' => is_array($_tmp = "user_id=") ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['val']['user_id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['val']['user_id'])), $this);
                ?>
" target="_blank"><?php 
                echo $this->_tpl_vars['val']['user_id'];
                ?>
</a>
                    </td>
                    <?php 
                if ($this->_foreach['dataLoop']['iteration'] % 10 == 0) {
                    ?>
                        </tr><tr>
                    <?php 
                }
                ?>
                    <?php 
            }
开发者ID:noriotakei,项目名称:suraimu,代码行数:31,代码来源:%%12^129^1297DD24%%detail.tpl.php

示例9: smarty_function_make_link

?>
">Add Permission</a><br/>
						<a class="mylink" href="<?php 
echo smarty_function_make_link(array('controller' => 'permission', 'action' => 'getall'), $this);
?>
">Manage Permissions</a><br/>
					</div>
					<br/><br/>
					<a href="#" style="text-decoration:none" onClick="javascript:return hide_show('translation_div');"><font class="bold_text"><span id="translation_div_span">+</span> Translation Management</font></a>
					<div id="translation_div" style="margin-left:15px; margin-top:7px; display:none;">
						<a class="mylink" href="<?php 
echo smarty_function_make_link(array('controller' => 'translation', 'action' => 'getall'), $this);
?>
">Manage Translation</a><br/>
						<a class="mylink" href="<?php 
echo smarty_function_make_link(array('controller' => 'translation', 'action' => 'add_edit'), $this);
?>
">Add a Translation Entry</a><br/>
					</div>
					<br/><br/>
				</td>
			</tr>
		</table>
	</td>
    <td valign="top">
		<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['document'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
开发者ID:halaby,项目名称:smlite-framework,代码行数:31,代码来源:%%67^675^675E0800%%admins.tpl.php

示例10: smarty_function_paging

/**
@author Ahmed Magdy Ezzeldin <admin@a1works.com>
Create a paging area that shows the pages of the current result set
@param controller
@param action
@param model
@param link_array [optional]
@param prev [optional]
@param next [optional]
@return paging links
*/
function smarty_function_paging($arg_arr_params, &$smarty)
{
    $link_array = array();
    if (!$arg_arr_params['controller']) {
        $smarty->_trigger_fatal_error("Please add the [controller] attribute.");
        return;
    }
    $link_array['controller'] = $arg_arr_params['controller'];
    unset($arg_arr_params['controller']);
    if (!$arg_arr_params['action']) {
        $smarty->_trigger_fatal_error("Please add the [action] attribute.");
        return;
    }
    $link_array['action'] = $arg_arr_params['action'];
    unset($arg_arr_params['action']);
    if (!$arg_arr_params['model']) {
        $smarty->_trigger_fatal_error("Please add the [model] attribute.");
        return;
    }
    $model = $arg_arr_params['model'];
    unset($arg_arr_params['model']);
    if (!$arg_arr_params['class']) {
        $arg_arr_params['class'] = "mylink";
    }
    if ($arg_arr_params['prev']) {
        $prev = $arg_arr_params['prev'];
        unset($arg_arr_params['prev']);
    }
    if ($arg_arr_params['next']) {
        $next = $arg_arr_params['next'];
        unset($arg_arr_params['next']);
    }
    if ($arg_arr_params['link_array']) {
        $link_array['array'] = $arg_arr_params['link_array'];
        unset($arg_arr_params['link_array']);
    } else {
        $link_array['array'] = array();
    }
    $html_attr = "";
    if (is_array($arg_arr_params)) {
        while (list($k, $v) = each($arg_arr_params)) {
            if (!is_array($v)) {
                $html_attr .= " " . $k . "=\"" . htmlspecialchars($v) . "\"";
            }
        }
        reset($arg_arr_params);
    }
    $output = "";
    if ($prev) {
        if ($model['__previous_link']) {
            $link_array['array'] = array_merge($link_array['array'], $model['__previous_link']);
            $output .= "<a href=\"" . smarty_function_make_link($link_array, $smarty) . "\"" . $html_attr . ">" . $prev . "</a> &nbsp; &nbsp; &nbsp; \n";
        }
    }
    if (is_array($model['__paging_pages'])) {
        while (list($k, $v) = each($model['__paging_pages'])) {
            if ($v) {
                $link_array['array'] = array_merge($link_array['array'], $v);
                $output .= "<a href=\"" . smarty_function_make_link($link_array, $smarty) . "\"" . $html_attr . ">" . $k . "</a> \n";
            } else {
                $output .= "<b><u><font size=\"2\">" . $k . "</font></u></b> \n";
            }
        }
        reset($model['__paging_pages']);
    }
    if ($next) {
        if ($model['__next_link']) {
            $link_array['array'] = array_merge($link_array['array'], $model['__next_link']);
            $output .= "&nbsp; &nbsp; &nbsp; <a href=\"" . smarty_function_make_link($link_array, $smarty) . "\"" . $html_attr . ">" . $next . "</a>";
        }
    }
    return $output;
}
开发者ID:halaby,项目名称:smlite-framework,代码行数:84,代码来源:function.paging.php

示例11: settype

    $_from = $this->_tpl_vars['dataList'];
    if (!is_array($_from) && !is_object($_from)) {
        settype($_from, 'array');
    }
    if (count($_from)) {
        foreach ($_from as $this->_tpl_vars['val']) {
            ?>
        <tr <?php 
            if (!$this->_tpl_vars['val']['is_use']) {
                ?>
style="background-color:tomato;"<?php 
            }
            ?>
>
        <td><a href="<?php 
            echo smarty_function_make_link(array('action' => 'action_registPage_RegistPageData', 'getTags' => is_array($_tmp = "regist_page_id=") ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['val']['id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['val']['id'])), $this);
            ?>
"><?php 
            echo $this->_tpl_vars['val']['id'];
            ?>
</a></td>
        <td><?php 
            echo $this->_tpl_vars['val']['name'];
            ?>
</td>
        <td><?php 
            echo $this->_tpl_vars['categoryList'][$this->_tpl_vars['val']['regist_page_category_id']];
            ?>
</td>
        <td><?php 
            echo $this->_tpl_vars['val']['cd'];
开发者ID:noriotakei,项目名称:suraimu,代码行数:31,代码来源:%%41^41A^41ABF5B1%%registPageSearchList.tpl.php

示例12: unset

    <?php 
        }
    }
    unset($_from);
    ?>
    </p>
    </div>
    </div>
    <br>
<?php 
}
?>
<div>
    <a href="<?php 
echo smarty_function_make_link(array('action' => 'action_itemManagement_ItemList', 'getTags' => $this->_tpl_vars['getTag']), $this);
?>
" target="_blank">商品一覧</a>
</div>
<br>
<form action="./" method="POST">
    <?php 
echo $this->_tpl_vars['POSTparam'];
?>

    <table border="0" cellspacing="0" cellpadding="0" id="list_table" class="TableSet04">
        <tr>
            <th>商品ID<br>(カンマ区切りで複数可)</th>
            <td><input type="text" name="item_id" value="<?php 
echo $this->_tpl_vars['returnValue']['item_id'];
?>
开发者ID:noriotakei,项目名称:suraimu,代码行数:30,代码来源:%%A8^A8D^A8D2FB7C%%orderingSet.tpl.php

示例13: settype

                ?>
                注文変更履歴<br>
                <table border="0" cellpadding="0" cellspacing="0" style="font-size:11px">
                    <?php 
                $_from = $this->_tpl_vars['changeItemList'][$this->_tpl_vars['key']];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $this->_foreach['changeItemLoop'] = array('total' => count($_from), 'iteration' => 0);
                if ($this->_foreach['changeItemLoop']['total'] > 0) {
                    foreach ($_from as $this->_tpl_vars['changeItemVal']) {
                        $this->_foreach['changeItemLoop']['iteration']++;
                        ?>
                    <tr >
                        <td nowrap width="150"><a href="<?php 
                        echo smarty_function_make_link(array('action' => 'action_informationStatus_InformationSearchList', 'getTags' => is_array($_tmp = is_array($_tmp = "search_html_text=") ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['changeItemVal']['access_key']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['changeItemVal']['access_key'])) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['URLparam']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['URLparam'])), $this);
                        ?>
" target="_blank"><?php 
                        echo $this->_tpl_vars['changeItemVal']['name'];
                        ?>
</a></td>
                        <td nowrap>\<?php 
                        echo $this->_tpl_vars['changeItemVal']['price'];
                        ?>
</td>
                    </tr>
                    <?php 
                    }
                }
                unset($_from);
                ?>
开发者ID:noriotakei,项目名称:suraimu,代码行数:31,代码来源:%%FB^FBE^FBEAB4E9%%orderingLog.tpl.php

示例14: settype

    ?>
view/images/icon_delete.gif"/> Delete</a></div>
<div class="div_text">Page: 
		<?php 
    $_from = $this->_tpl_vars['user']['__paging_pages'];
    if (!is_array($_from) && !is_object($_from)) {
        settype($_from, 'array');
    }
    if (count($_from)) {
        foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']) {
            ?>
			<?php 
            if ($this->_tpl_vars['v']) {
                ?>
			<a href="<?php 
                echo smarty_function_make_link(array('controller' => 'useradmin', 'action' => 'search', '__orderby' => $this->_tpl_vars['__orderby'], '__desc' => $this->_tpl_vars['__desc'], '__is_form_submitted' => $this->_tpl_vars['__is_form_submitted'], 'array' => $this->_tpl_vars['user_search_link'], 'array2' => $this->_tpl_vars['v']), $this);
                ?>
" class="mylink"><?php 
                echo $this->_tpl_vars['k'];
                ?>
</a>
			<?php 
            } else {
                ?>
			<b><u><font size="2"><?php 
                echo $this->_tpl_vars['k'];
                ?>
</font></u></b>
			<?php 
            }
            ?>
开发者ID:halaby,项目名称:smlite-framework,代码行数:31,代码来源:%%A2^A2F^A2FDB468%%search.tpl.php

示例15: settype

    <th>MB件名</th>
    <th>配信状況</th>
    <th>作成日時</th>
    <th>削除</th>
    </tr>
    <?php 
    $_from = $this->_tpl_vars['dataList'];
    if (!is_array($_from) && !is_object($_from)) {
        settype($_from, 'array');
    }
    if (count($_from)) {
        foreach ($_from as $this->_tpl_vars['val']) {
            ?>
        <tr>
        <td><a href="<?php 
            echo smarty_function_make_link(array('action' => 'action_ordering_ReserveSupportMailData', 'getTags' => is_array($_tmp = "support_mail_reserve_id=") ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['val']['id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['val']['id'])), $this);
            ?>
" target="_blank"><?php 
            echo $this->_tpl_vars['val']['id'];
            ?>
</a></td>
        <td><?php 
            echo $this->_tpl_vars['val']['send_datetime'];
            ?>
</td>
        <td><?php 
            echo is_array($_tmp = $this->_tpl_vars['val']['pc_subject']) ? $this->_run_mod_handler('emoji', true, $_tmp) : smarty_modifier_emoji($_tmp);
            ?>
</td>
        <td><?php 
            echo is_array($_tmp = $this->_tpl_vars['val']['mb_subject']) ? $this->_run_mod_handler('emoji', true, $_tmp) : smarty_modifier_emoji($_tmp);
开发者ID:noriotakei,项目名称:suraimu,代码行数:31,代码来源:%%04^049^04939494%%reserveSupportMailList.tpl.php


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