當前位置: 首頁>>代碼示例>>PHP>>正文


PHP smarty_function_checked函數代碼示例

本文整理匯總了PHP中smarty_function_checked函數的典型用法代碼示例。如果您正苦於以下問題:PHP smarty_function_checked函數的具體用法?PHP smarty_function_checked怎麽用?PHP smarty_function_checked使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了smarty_function_checked函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: smarty_function_checked

									<input name="type_name[]" type="hidden" value="<?php 
        echo $_smarty_tpl->getVariable('nB')->value['type_name'];
        ?>
" />
									<input name="content[]" type="text" value="<?php 
        echo $_smarty_tpl->getVariable('nB')->value['content'];
        ?>
" onkeyup="set_mobile(this)" />
									<span <?php 
        if ($_smarty_tpl->getVariable('nB')->value['type'] != 'mobile') {
            ?>
style="display:none"<?php 
        }
        ?>
><input name="is_default" <?php 
        echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('nB')->value['is_default'], 'str' => 'Y'), $_smarty_tpl->smarty, $_smarty_tpl);
        ?>
 type="radio" value="<?php 
        echo $_smarty_tpl->getVariable('nB')->value['content'];
        ?>
" style="width:auto" /> 接收 手機短信 號碼</span>
									<a href="javascript:;" onclick="Del_NAB('NAB' , this)">刪除</a>
								</li>
								<?php 
    }
}
?>
							</ul>
						</td>
					</tr>
					<tr><th colspan="2" align="center"><input type="submit" value=" 提 交 " /> <input type="reset" value=" 重 填 " /></th></tr>
開發者ID:Capitalwang,項目名稱:shehuahk,代碼行數:31,代碼來源:fe5df42e14e67fc69afb5b0fe998d281813a352c.file.proxy_nab.html.php

示例2: smarty_function_checked

						<td>
							<input name="sex" type="radio" value="privacy" <?php 
if ($_smarty_tpl->getVariable('get')->value['action'] == 'add') {
    ?>
checked="checked"<?php 
} else {
    echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('edit')->value['sex'], 'str' => 'privacy'), $_smarty_tpl->smarty, $_smarty_tpl);
}
?>
 /> 保密
							<input name="sex" type="radio" value="man" <?php 
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('edit')->value['sex'], 'str' => 'man'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
 /> 男
							<input name="sex" type="radio" value="woman" <?php 
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('edit')->value['sex'], 'str' => 'woman'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
 /> 女
						</td>
					</tr>
					<tr>
						<td align="right">備注</td>
						<td><textarea name="remark" style="width:80%; height:120px"><?php 
echo smarty_function_br_to_null(array('str' => $_smarty_tpl->getVariable('edit')->value['remark']), $_smarty_tpl->smarty, $_smarty_tpl);
?>
</textarea></td>
					</tr>
					<tr><th colspan="2" align="center"><input type="submit" value=" 提 交 " /> <input type="reset" value=" 重 填 " /></th></tr>
				</table>
			</form>
		</div>
開發者ID:Capitalwang,項目名稱:shehuahk,代碼行數:31,代碼來源:68332a3c4c792c3e145e46280be795adb9ec9dfb.file.service_append.html.php

示例3: smarty_modifier_default

echo smarty_modifier_default($_smarty_tpl->getVariable('edit')->value['rebate'], 0);
?>
" maxlength="5" onfocus="sprintf('%.2f' , this , true)" /> %</td>
					</tr>
					<tr>
						<td align="right">促銷價</td>
						<td>
							<input name="is_offer" type="radio" value="Y" <?php 
if ($_smarty_tpl->getVariable('get')->value['action'] == 'add' || $_smarty_tpl->getVariable('edit')->value['is_offer'] == 'Y') {
    ?>
checked="checked"<?php 
}
?>
 /> 支持
							<input name="is_offer" type="radio" value="N" <?php 
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('edit')->value['is_offer'], 'str' => 'N'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
 /> 不支持
						</td>
					</tr>
					<tr>
						<td align="right" class="Need">短信 / 每條</td>
						<td><input type="text" name="sms_price" class="taxis" value="<?php 
echo smarty_modifier_default($_smarty_tpl->getVariable('edit')->value['sms_price'], 0.1);
?>
" maxlength="4" onfocus="sprintf('%.2f' , this)" /> 元</td>
					</tr>
					<tr>
						<td align="right">排序</td>
						<td>
							<input name="taxis" type="text" class="taxis" value="<?php 
開發者ID:Capitalwang,項目名稱:shehuahk,代碼行數:31,代碼來源:9ae77fb2c5d61a05bdbd6da2726be30c62986367.file.proxy_group_append.html.php

示例4: foreach

            foreach ($_from as $_smarty_tpl->tpl_vars['aon']->key => $_smarty_tpl->tpl_vars['aon']->value) {
                ?>
									<label for="<?php 
                echo $_smarty_tpl->getVariable('aon')->value['id'];
                ?>
"><input name="purview[]" type="checkbox" value="<?php 
                echo $_smarty_tpl->getVariable('aon')->value['id'];
                ?>
" id="<?php 
                echo $_smarty_tpl->getVariable('aon')->value['id'];
                ?>
" title="<?php 
                echo $_smarty_tpl->getVariable('aon')->value['action'];
                ?>
" onclick="select_ck(this)" <?php 
                echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('aon')->value['id'], 'str' => $_smarty_tpl->getVariable('edit')->value['purview']), $_smarty_tpl->smarty, $_smarty_tpl);
                ?>
 /> <?php 
                echo $_smarty_tpl->getVariable('aon')->value['action_show'];
                ?>
</label>
									<?php 
            }
        }
        ?>
								</li>
								<?php 
    }
}
?>
							</ul>
開發者ID:Capitalwang,項目名稱:shehuahk,代碼行數:31,代碼來源:e3c952d72acd60ddea05363ed657d4b14a5044c1.file.role_purview.html.php

示例5: smarty_function_checked

				<?php 
    }
}
?>
				</select>
			</td>
		</tr>
		<tr>
			<td align="right" class="Need">快遞類型</td>
			<td>
				<label for="ems"><input type="radio" name="express_type" value="EMS" id="ems" <?php 
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('orders')->value['express_type'], 'str' => 'EMS'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
 /> EMS</label>
				<label for="shunfeng"><input type="radio" name="express_type" value="順豐" id="shunfeng" <?php 
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('orders')->value['express_type'], 'str' => '順豐'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
 /> 順豐</label>
			</td>
			<td align="right" class="Need">快遞單號</td>
			<td><input name="express_ID" type="text" style="width:120px" value="<?php 
echo $_smarty_tpl->getVariable('orders')->value['express_ID'];
?>
" /></td>
		</tr>
		<tr><th colspan="4" align="center"><input type="submit" value=" 確 認 " /></th></tr>
		<tr>
			<td colspan="4">
				<table width="100%" border="0" cellspacing="1" cellpadding="0" id="tab_show" style="margin:0.5em 0 0 0">
					<tr>
						<th>產品編號</th>
開發者ID:Capitalwang,項目名稱:shehuahk,代碼行數:31,代碼來源:ec78adb8cdb07304f2d876fffeb39c84e6566192.file.orders_dispatch.html.php

示例6: foreach

    }
    if (count($_from) > 0) {
        foreach ($_from as $_smarty_tpl->tpl_vars['ts']->key => $_smarty_tpl->tpl_vars['ts']->value) {
            $_smarty_tpl->tpl_vars['sy']->value = $_smarty_tpl->tpl_vars['ts']->key;
            ?>
							<label for="proSource_<?php 
            echo $_smarty_tpl->getVariable('sy')->value;
            ?>
"><input name="proSource[]" type="checkbox" id="proSource_<?php 
            echo $_smarty_tpl->getVariable('sy')->value;
            ?>
" value="<?php 
            echo $_smarty_tpl->getVariable('sy')->value;
            ?>
" <?php 
            echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('sy')->value, 'str' => $_smarty_tpl->getVariable('get')->value['proSource']), $_smarty_tpl->smarty, $_smarty_tpl);
            ?>
 /> <?php 
            echo $_smarty_tpl->getVariable('ts')->value;
            ?>
</label>
							<?php 
        }
    }
    ?>
						</td>
					</tr>
					<tr>
						<td colspan="4" align="right">促銷</td>
						<td colspan="6" class="promotion">
							<ul style="display:block">
開發者ID:Capitalwang,項目名稱:shehuahk,代碼行數:31,代碼來源:15d2e5e9712dc2bbe3ae51ecb1768517dcb8cb92.file.product_advanced.html.php

示例7: smarty_modifier_default

            ?>
]" type="hidden" value="<?php 
            echo smarty_modifier_default($_smarty_tpl->getVariable('pso')->value['is_arrival'], 'N');
            ?>
" />
							<label for="de_<?php 
            echo $_smarty_tpl->getVariable('pso')->value['id'];
            ?>
"><input name="is_arrival[<?php 
            echo $_smarty_tpl->getVariable('pso')->value['id'];
            ?>
]" id="de_<?php 
            echo $_smarty_tpl->getVariable('pso')->value['id'];
            ?>
" <?php 
            echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('pso')->value['is_arrival'], 'str' => 'Y'), $_smarty_tpl->smarty, $_smarty_tpl);
            ?>
 type="checkbox" value="Y" /> 到貨</label>
						</td>
						<?php 
        } else {
            ?>
						<td></td>
						<td></td>
						<td>取消</td>
						<td></td>
						<?php 
        }
        ?>
						<td class="action"><a href="javascript:;" onclick="show_detail(this , '<?php 
        echo $_smarty_tpl->getVariable('pso')->value['id'];
開發者ID:Capitalwang,項目名稱:shehuahk,代碼行數:31,代碼來源:d0620877a4e9b60dd0d9094ba984b5f5d53acf59.file.orders_deploy.html.php


注:本文中的smarty_function_checked函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。