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


PHP Lookup::timeframes_menu方法代码示例

本文整理汇总了PHP中Lookup::timeframes_menu方法的典型用法代码示例。如果您正苦于以下问题:PHP Lookup::timeframes_menu方法的具体用法?PHP Lookup::timeframes_menu怎么用?PHP Lookup::timeframes_menu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Lookup的用法示例。


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

示例1: settings_meta_box


//.........这里部分代码省略.........
</label></p>
	<p><input type="hidden" name="variants" value="off" /><input type="checkbox" name="variants" value="on" id="variations-setting" tabindex="13"<?php 
    if ($Product->variants == "on") {
        echo ' checked="checked"';
    }
    ?>
 /><label for="variations-setting"> <?php 
    _e('Variants', 'Shopp');
    echo $Admin->boxhelp('product-editor-variations');
    ?>
</label></p>
	<p><input type="hidden" name="addons" value="off" /><input type="checkbox" name="addons" value="on" id="addons-setting" tabindex="13"<?php 
    if ($Product->addons == "on") {
        echo ' checked="checked"';
    }
    ?>
 /><label for="addons-setting"> <?php 
    _e('Add-ons', 'Shopp');
    echo $Admin->boxhelp('product-editor-addons');
    ?>
</label></p>

	<?php 
    if (shopp_setting_enabled('tax_inclusive')) {
        ?>
		<p><input type="hidden" name="meta[excludetax]" value="off" /><input type="checkbox" name="meta[excludetax]" value="on" id="excludetax-setting" tabindex="18"  <?php 
        if (isset($Product->meta['excludetax']) && Shopp::str_true($Product->meta['excludetax']->value)) {
            echo 'checked="checked"';
        }
        ?>
 /> <label for="excludetax-setting"><?php 
        _e('Exclude Taxes', 'Shopp');
        ?>
</label></p>
	<?php 
    }
    ?>

	<?php 
    if ($Shopp->Shipping->realtime) {
        ?>
	<p><input type="hidden" name="meta[packaging]" value="off" /><input type="checkbox" name="meta[packaging]" value="on" id="packaging-setting" tabindex="18"  <?php 
        if (isset($Product->meta['packaging']) && $Product->meta['packaging']->value == "on") {
            echo 'checked="checked"';
        }
        ?>
 /> <label for="packaging-setting"><?php 
        _e('Separate Packaging', 'Shopp');
        ?>
</label></p>
	<?php 
    }
    ?>


	<p><input type="hidden" name="comment_status" value="closed" /><input type="checkbox" name="comment_status" value="open" id="allow-comments" tabindex="18"  <?php 
    if (Shopp::str_true($Product->comment_status)) {
        echo 'checked="checked"';
    }
    ?>
 /> <label for="allow-comments"><?php 
    _e('Comments', 'Shopp');
    ?>
</label>

	<p><input type="hidden" name="ping_status" value="closed" /><input type="checkbox" name="ping_status" value="open" id="allow-trackpings" tabindex="18"  <?php 
    if (Shopp::str_true($Product->ping_status)) {
        echo 'checked="checked"';
    }
    ?>
 /> <label for="allow-trackpings"><?php 
    _e('Trackbacks & Pingbacks', 'Shopp');
    ?>
</label>

	<p><input type="hidden" name="meta[processing]" value="off" /><input type="checkbox" name="meta[processing]" value="on" id="process-time" tabindex="18"  <?php 
    if (isset($Product->meta['processing']) && Shopp::str_true($Product->meta['processing']->value)) {
        echo 'checked="checked"';
    }
    ?>
 /> <label for="process-time"><?php 
    _e('Processing Time', 'Shopp');
    ?>
</label>

	<div id="processing" class="hide-if-js">
		<select name="meta[minprocess]"><?php 
    echo menuoptions(Lookup::timeframes_menu(), isset($Product->meta['minprocess']) ? $Product->meta['minprocess']->value : false, true);
    ?>
</select> &mdash;
		<select name="meta[maxprocess]"><?php 
    echo menuoptions(Lookup::timeframes_menu(), isset($Product->meta['maxprocess']) ? $Product->meta['maxprocess']->value : false, true);
    ?>
</select>
	</div>

	</p>

<?php 
}
开发者ID:forthrobot,项目名称:inuvik,代码行数:101,代码来源:ui.php

示例2: shopp_admin_screen_tabs

<div class="wrap shopp">
	<div class="icon32"></div>
	<?php 
shopp_admin_screen_tabs();
do_action('shopp_admin_notices');
?>


	<script id="delivery-menu" type="text/x-jquery-tmpl"><?php 
$deliverymenu = Lookup::timeframes_menu();
echo Shopp::menuoptions($deliverymenu, false, true);
?>
</script>

	<?php 
$this->shipping_menu();
?>

	<form action="<?php 
echo esc_url($this->url);
?>
" id="shipping" method="post">
	<div>
		<?php 
wp_nonce_field('shopp-settings-shiprate');
?>
	</div>


	<div class="tablenav">
		<div class="actions">
开发者ID:BlessySoftwares,项目名称:anvelocom,代码行数:31,代码来源:shiprates.php

示例3: _e

if (Shopp::str_true($Product->ping_status)) {
    echo 'checked="checked"';
}
?>
 /> <label for="allow-trackpings"><?php 
_e('Trackbacks & Pingbacks', 'Shopp');
?>
</label>

<p><input type="hidden" name="meta[processing]" value="off" /><input type="checkbox" name="meta[processing]" value="on" id="process-time" tabindex="18"  <?php 
if (isset($Product->meta['processing']) && Shopp::str_true($Product->meta['processing']->value)) {
    echo 'checked="checked"';
}
?>
 /> <label for="process-time"><?php 
_e('Processing Time', 'Shopp');
?>
</label>

<div id="processing" class="hide-if-js">
	<select name="meta[minprocess]"><?php 
echo menuoptions(Lookup::timeframes_menu(), isset($Product->meta['minprocess']) ? $Product->meta['minprocess']->value : false, true);
?>
</select> &mdash;
	<select name="meta[maxprocess]"><?php 
echo menuoptions(Lookup::timeframes_menu(), isset($Product->meta['maxprocess']) ? $Product->meta['maxprocess']->value : false, true);
?>
</select>
</div>

</p>
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:settings.php

示例4: _e

?>
</td>
			</tr>
			<tr>
				<th scope="row" valign="top"><label for="order-processing-min"><?php 
_e('Order Processing', 'Shopp');
?>
</label></th>
				<td>
				<select name="settings[order_processing_min]" id="order-processing">
						<?php 
echo menuoptions(Lookup::timeframes_menu(), shopp_setting('order_processing_min'), true);
?>
				</select> &mdash; <select name="settings[order_processing_max]" id="order-processing">
							<?php 
echo menuoptions(Lookup::timeframes_menu(), shopp_setting('order_processing_max'), true);
?>
				</select><br />
				<?php 
_e('Set the estimated time range for processing orders for shipment.', 'Shopp');
?>
</td>
			</tr>
			<tr>
				<th scope="row" valign="top"><label for="lowstock-level"><?php 
_e('Low Inventory', 'Shopp');
?>
</label></th>
				<td>
					<?php 
$values = array_reverse(array_merge(range(0, 25), range(30, 50, 5), range(60, 100, 10)));
开发者ID:BlessySoftwares,项目名称:anvelocom,代码行数:31,代码来源:shipping.php


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