本文整理汇总了PHP中Modules::get_all_zones方法的典型用法代码示例。如果您正苦于以下问题:PHP Modules::get_all_zones方法的具体用法?PHP Modules::get_all_zones怎么用?PHP Modules::get_all_zones使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Modules
的用法示例。
在下文中一共展示了Modules::get_all_zones方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: administrator
//.........这里部分代码省略.........
_order_status_id">
<?php
$statusses = parent::get_order_statusses();
foreach ($statusses as $id => $name) {
echo '<option value="' . $id . '"' . ($instance_data['order_status_id'] == $id ? ' selected="selected"' : '') . '>' . $name . '</option>';
}
?>
</select>
<span class="help-block"><?php
echo Translate('De status na het plaatsen van de bestelling met deze methode.');
?>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label"><?php
echo Translate('Zone');
?>
</label>
<div class="controls">
<label class="checkbox inline"><?php
echo Translate('All');
?>
<input type="checkbox" name="zone[<?php
echo $instance_data['id'];
?>
][*]" value="*" <?php
echo $instance_data['zone'] == '*' ? ' checked="checked"' : '';
?>
/>
</label>
<?php
$selected_zones = explode(';', $instance_data['zone']);
$zones = parent::get_all_zones();
foreach ($zones as $zone_id => $zone_name) {
echo '<label class="checkbox inline">' . $zone_name;
echo '<input type="checkbox" name="zone[' . $instance_data['id'] . '][' . $zone_id . ']" value="' . $zone_id . '"' . (in_array($zone_id, $selected_zones) ? ' checked="checked"' : '') . ' />';
echo '</label>';
}
?>
<span class="help-block"><?php
echo Translate('Voor welke zone is deze methode actief');
?>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="<?php
echo $instance;
?>
_quote"><?php
echo Translate('Verzendkost');
?>
</label>
<div class="controls">
<input type="text" name="quote[<?php
echo $instance_data['id'];
?>
]" value="<?php
echo $instance_data['quote'];
?>
" class="input-xlarge" id="<?php
echo $instance;
?>
_quote" />
</div>
示例2: administrator
//.........这里部分代码省略.........
}
} else {
echo '<label class="checkbox inline">' . ${$module}->config['title'];
echo '<input type="checkbox" name="shipping_module[' . $instance_data['id'] . '][' . $module . ']" value="' . $module . '"' . (in_array($module, $shipping_modules) ? ' checked="checked"' : '') . ' />';
echo '</label>';
}
}
?>
<span class="help-block"><?php
echo Translate('Voor welke verzendmethodes is deze methode actief');
?>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label"><?php
echo Translate('Zone');
?>
</label>
<div class="controls">
<label class="checkbox inline"><?php
echo Translate('All');
?>
<input type="checkbox" name="zone[<?php
echo $instance_data['id'];
?>
][*]" value="*" <?php
echo $instance_data['zone'] == '*' ? ' checked="checked"' : '';
?>
/>
</label>
<?php
$selected_zones = explode(';', $instance_data['zone']);
$zones = parent::get_all_zones();
foreach ($zones as $zone_id => $zone_name) {
echo '<label class="checkbox inline">' . $zone_name;
echo '<input type="checkbox" name="zone[' . $instance_data['id'] . '][' . $zone_id . ']" value="' . $zone_id . '"' . (in_array($zone_id, $selected_zones) ? ' checked="checked"' : '') . ' />';
echo '</label>';
}
?>
<span class="help-block"><?php
echo Translate('Voor welke zone is deze methode actief');
?>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label"><?php
echo Translate('Betaalmethodes');
?>
</label>
<div class="controls clearfix">
<div class="tabbable">
<?php
$moddir = dirname(__FILE__) . '/api/paymentmethods';
$files = $this->listFolderFiles($moddir);
?>
<ul class="nav nav-tabs">
<?php
foreach ($files as $key => $file) {
echo '<li ' . ($key == 0 ? ' class="active"' : '') . '><a href="#' . substr(basename($file), 0, -4) . '" data-toggle="tab">' . ucfirst(substr(basename($file), 0, -4)) . '</a></li>';
}
?>
</ul>
<div class="tab-content">
<?php
示例3: administrator
//.........这里部分代码省略.........
}
} else {
echo '<label class="checkbox inline">' . ${$module}->config['title'];
echo '<input type="checkbox" name="shipping_module[' . $instance_data['id'] . '][' . $module . ']" value="' . $module . '"' . (in_array($module, $shipping_modules) ? ' checked="checked"' : '') . ' />';
echo '</label>';
}
}
?>
<span class="help-block"><?php
echo Translate('Voor welke verzendmethodes is deze methode actief');
?>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label"><?php
echo Translate('Zone');
?>
</label>
<div class="controls">
<label class="checkbox inline"><?php
echo Translate('All');
?>
<input type="checkbox" name="zone[<?php
echo $instance_data['id'];
?>
][*]" value="*" <?php
echo $instance_data['zone'] == '*' ? ' checked="checked"' : '';
?>
/>
</label>
<?php
$selected_zones = explode(';', $instance_data['zone']);
$zones = parent::get_all_zones();
foreach ($zones as $zone_id => $zone_name) {
echo '<label class="checkbox inline">' . $zone_name;
echo '<input type="checkbox" name="zone[' . $instance_data['id'] . '][' . $zone_id . ']" value="' . $zone_id . '"' . (in_array($zone_id, $selected_zones) ? ' checked="checked"' : '') . ' />';
echo '</label>';
}
?>
<span class="help-block"><?php
echo Translate('Voor welke zone is deze methode actief');
?>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label"><?php
echo Translate('Afbeeldingen actieve methodes');
?>
</label>
<div class="controls clearfix">
<ul class="thumbnails">
<?php
$selected = explode(';', $instance_data['method_images']);
$moddir = dirname(__FILE__) . '/img/methods';
$files = $this->listFolderFiles($moddir);
foreach ($files as $file) {
$file = basename($file);
echo '<li>';
echo '<label for="' . $file . '" class="thumbnail" style="text-align:center;">';
echo '<img src="' . HTTP_SERVER . DIR_WS_HTTP_CATALOG . DIR_WS_MODULES . 'checkout/modules/' . get_class($this) . '/img/methods/' . $file . '" />';
echo '<input type="checkbox" name="method_images[' . $instance_data['id'] . '][]" value="' . $file . '"' . (in_array($file, $selected) ? ' checked="checked"' : '') . ' id="' . $file . '" />';
echo '</label>';
echo '</li>';
}
示例4: administrator
//.........这里部分代码省略.........
<div class="control-group">
<label class="control-label" for="order_status_id"><?php
echo Translate('Bestel status');
?>
</label>
<div class="controls">
<select name="order_status_id" class="input-xlarge" id="order_status_id">
<?php
$statusses = parent::get_order_statusses();
foreach ($statusses as $id => $name) {
echo '<option value="' . $id . '"' . ($this->config['order_status_id'] == $id ? ' selected="selected"' : '') . '>' . $name . '</option>';
}
?>
</select>
<span class="help-block"><?php
echo Translate('De status na het plaatsen van de bestelling met deze methode.');
?>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label"><?php
echo Translate('Verzendmethode');
?>
</label>
<div class="controls">
<label class="checkbox inline"><?php
echo Translate('All');
?>
<input type="checkbox" name="shipping_module[*]" <?php
echo $this->config['shipping_module'] == '*' ? ' checked="checked"' : '';
?>
/>
</label>
<?php
$shipping_modules = explode(';', $this->config['shipping_module']);
foreach ($Modules->modules['shipping'] as $module) {
global ${$module};
if (isset(${$module}->instances)) {
foreach (${$module}->instances as $shipping_instance => $shipping_instance_data) {
echo '<label class="checkbox inline">' . $shipping_instance_data['title'];
echo '<input type="checkbox" name="shipping_module[' . $shipping_instance . ']" value="' . $shipping_instance . '"' . (in_array($shipping_instance, $shipping_modules) ? ' checked="checked"' : '') . ' />';
echo '</label>';
}
} else {
echo '<label class="checkbox inline">' . ${$module}->config['title'];
echo '<input type="checkbox" name="shipping_module[' . $module . ']" value="' . $module . '"' . (in_array($module, $shipping_modules) ? ' checked="checked"' : '') . ' />';
echo '</label>';
}
}
?>
<span class="help-block"><?php
echo Translate('Voor welke verzendmethodes is deze methode actief');
?>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label"><?php
echo Translate('Zone');
?>
</label>
<div class="controls">
<label class="checkbox inline"><?php
echo Translate('All');
?>
<input type="checkbox" name="zone[*]" value="*" <?php
echo $this->config['zone'] == '*' ? ' checked="checked"' : '';
?>
/>
</label>
<?php
$selected_zones = explode(';', $this->config['zone']);
$zones = parent::get_all_zones();
foreach ($zones as $zone_id => $zone_name) {
echo '<label class="checkbox inline">' . $zone_name;
echo '<input type="checkbox" name="zone[' . $zone_id . ']" value="' . $zone_id . '"' . (in_array($zone_id, $selected_zones) ? ' checked="checked"' : '') . ' />';
echo '</label>';
}
?>
<span class="help-block"><?php
echo Translate('Voor welke zone is deze methode actief');
?>
</span>
</div>
</div>
<div class="form-actions">
<button class="btn btn-primary" type="submit"><?php
echo Translate('Opslaan');
?>
</button>
<button class="btn" type="reset"><?php
echo Translate('Annuleren');
?>
</button>
</div>
</fieldset>
</form>
<?php
}