本文整理汇总了PHP中osc_draw_checkbox_field函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_draw_checkbox_field函数的具体用法?PHP osc_draw_checkbox_field怎么用?PHP osc_draw_checkbox_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_draw_checkbox_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getParameters
function getParameters()
{
global $osC_Language;
$groups = array();
$groups_ids = array();
foreach ($this->_groups as $group) {
if ($group['id'] != '1') {
$groups[] = array('text' => $group['title'], 'id' => $group['id']);
$groups_ids[] = $group['id'];
}
}
return array(array('key' => $osC_Language->get('images_resize_field_groups'), 'field' => osc_draw_pull_down_menu('groups[]', $groups, $groups_ids, 'multiple="multiple" size="5"')), array('key' => $osC_Language->get('images_resize_field_overwrite_images'), 'field' => osc_draw_checkbox_field('overwrite', '1')));
}
示例2: osc_cfg_set_credit_cards_checkbox_field
function osc_cfg_set_credit_cards_checkbox_field($default, $key = null)
{
$OSCOM_Database = Registry::get('Database');
$name = empty($key) ? 'configuration_value' : 'configuration[' . $key . '][]';
$cc_array = array();
$Qcc = $OSCOM_Database->query('select id, credit_card_name from :table_credit_cards where credit_card_status = :credit_card_status order by sort_order, credit_card_name');
$Qcc->bindInt(':credit_card_status', 1);
$Qcc->execute();
while ($Qcc->next()) {
$cc_array[] = array('id' => $Qcc->valueInt('id'), 'text' => $Qcc->value('credit_card_name'));
}
return osc_draw_checkbox_field($name, $cc_array, explode(',', $default), null, '<br />');
}
示例3: initialize
function initialize()
{
global $osC_Database, $osC_Language, $osC_Template;
$Qpoll = $osC_Database->query('select p.polls_id, p.polls_type, pd.polls_title from :table_polls p, :table_polls_description pd where p.polls_status = 1 and p.polls_id = pd.polls_id and pd.languages_id = :languages_id');
$Qpoll->bindTable(':table_polls', TABLE_POLLS);
$Qpoll->bindTable(':table_polls_description', TABLE_POLLS_DESCRIPTION);
$Qpoll->bindInt(':languages_id', $osC_Language->getID());
$Qpoll->executeRandomMulti();
$this->_content = '<div id="polls"><form name="frmPolls" id="frmPolls" action="' . osc_href_link(FILENAME_JSON) . '" method="get">' . osc_draw_hidden_field('polls_id', $Qpoll->valueInt('polls_id'));
if ($Qpoll->numberOfRows() > 0) {
$this->_content .= '<h6>' . $Qpoll->value('polls_title') . '</h6>';
$Qanswers = $osC_Database->query('select pa.polls_id, pa.polls_answers_id, pa.votes_count, pa.sort_order, pad.answers_title from :table_polls_answers pa, :table_polls_answers_description pad where pa.polls_id = :polls_id and pa.polls_answers_id = pad.polls_answers_id and pad.languages_id = :languages_id order by pa.sort_order desc');
$Qanswers->bindTable(':table_polls_answers', TABLE_POLLS_ANSWERS);
$Qanswers->bindTable(':table_polls_answers_description', TABLE_POLLS_ANSWERS_DESCRIPTION);
$Qanswers->bindInt(':polls_id', $Qpoll->valueInt('polls_id'));
$Qanswers->bindInt(':languages_id', $osC_Language->getID());
$Qanswers->execute();
if ($Qanswers->numberOfRows() > 0) {
$this->_content .= '<ul>';
while ($Qanswers->next()) {
if ($Qpoll->valueInt('polls_type')) {
$this->_content .= '<li>' . osc_draw_checkbox_field('vote[]', $Qanswers->valueInt('polls_answers_id'), null, 'class="poll_votes"') . ' ' . $Qanswers->value('answers_title') . '</li>';
} else {
$this->_content .= '<li>' . osc_draw_radio_field('vote[]', $Qanswers->valueInt('polls_answers_id'), null, 'class="poll_votes"') . ' ' . $Qanswers->value('answers_title') . '</li>';
}
}
$this->_content .= '</ul>';
$this->_content .= '<span style="float: right;">' . osc_draw_image_button('button_vote.png', $osC_Language->get('button_vote'), 'class="button" id="btnPollVote"') . '</span>';
$this->_content .= osc_draw_image_button('button_result.png', $osC_Language->get('button_result'), 'class="button" id="btnPollResult"');
$Qanswers->freeResult();
}
}
$Qpoll->freeResult();
$this->_content .= '</form></div>';
$osC_Template->addJavascriptFilename('includes/javascript/polls.js');
$js .= '<script type="text/javascript">
window.addEvent(\'domready\',function(){
var polls = new Polls();
});
</script>';
$this->_content .= $js . "\n";
}
示例4: osc_draw_input_field
</td>
<td class="main"><?php
echo osc_draw_input_field('email_address', '', '', true);
?>
</td>
</tr>
<?php
if (ACCOUNT_NEWSLETTER > -1) {
?>
<tr>
<td class="main"><?php
echo ENTRY_NEWSLETTER;
?>
</td>
<td class="main"><?php
echo osc_draw_checkbox_field('newsletter', '1');
?>
</td>
</tr>
<?php
}
?>
<tr>
<td colspan="2"><?php
echo tep_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo ENTRY_PASSWORD;
示例5: osc_href_link_admin
</div>
<div class="infoBoxContent">
<form name="bDelete" action="<?php
echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&bID=' . $osC_ObjectInfo->get('banners_id') . '&action=delete');
?>
" method="post">
<p><?php
echo $osC_Language->get('introduction_delete_banner');
?>
</p>
<p><?php
echo '<b>' . $osC_ObjectInfo->get('banners_title') . '</b>';
?>
</p>
<?php
if (!osc_empty($osC_ObjectInfo->get('banners_image'))) {
echo ' <p>' . osc_draw_checkbox_field('delete_image', array(array('id' => 'on', 'text' => $osC_Language->get('field_delete_image'))), true) . '</p>';
}
?>
<p align="center"><?php
echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_delete') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page']) . '\';" class="operationButton" />';
?>
</p>
</form>
</div>
示例6: osc_draw_checkbox_field
?>
</th>
<th align="center" width="20"><?php
echo osc_draw_checkbox_field('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<th align="right" colspan="3"><?php
echo '<input type="image" src="' . osc_icon_raw('trash.png') . '" title="' . $osC_Language->get('icon_trash') . '" onclick="document.batch.action=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&action=batch_delete') . '\';" />';
?>
</th>
<th align="center" width="20"><?php
echo osc_draw_checkbox_field('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
</tr>
</tfoot>
<tbody>
</tbody>
</table>
</form>
<div style="padding: 2px;">
<span id="dataTableLegend"><?php
echo '<b>' . $osC_Language->get('table_action_legend') . '</b> ' . osc_icon('edit.png') . ' ' . $osC_Language->get('icon_edit') . ' ' . osc_icon('trash.png') . ' ' . $osC_Language->get('icon_trash');
?>
</span>
示例7: osc_draw_password_field
echo $osC_Language->get('field_password_confirmation');
?>
</td>
<td width="70%"><?php
echo osc_draw_password_field('confirmation');
?>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td width="30%"><?php
echo $osC_Language->get('field_status');
?>
</td>
<td width="70%"><?php
echo osc_draw_checkbox_field('status', 'on', true);
?>
</td>
</tr>
</table>
<p align="center"><?php
echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_save') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" class="operationButton" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&search=' . $_GET['search'] . '&page=' . $_GET['page']) . '\';" />';
?>
</p>
</form>
</div>
示例8: osc_draw_checkbox_field
</div>
<li style="height:10px;line-height:10px"> </li>
<?php
if ($osC_Customer->isLoggedOn()) {
?>
<li>
<?php
echo osc_draw_checkbox_field('create_billing_address', array(array('id' => '1', 'text' => $osC_Language->get('create_new_billing_address'))), $create_billing_address);
?>
</li>
<?php
}
if ($osC_ShoppingCart->isVirtualCart() == false) {
?>
<li><?php
echo osc_draw_checkbox_field('ship_to_this_address', array(array('id' => '1', 'text' => $osC_Language->get('ship_to_this_address'))), $ship_to_this_address);
?>
</li>
<?php
}
?>
</ol>
<div class="submitFormButtons" style="text-align: right;">
<?php
echo osc_draw_image_button('button_continue.gif', $osC_Language->get('button_continue'), 'id="btnSaveBillingInformation" style="cursor: pointer"');
?>
</div>
</div>
</div>
示例9: tep_draw_form
<div class="infoBoxContent">
<?php
echo tep_draw_form('cDelete', FILENAME_CUSTOMERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_id . '&action=deleteconfirm');
?>
<p><?php
echo TEXT_DELETE_INTRO;
?>
</p>
<p><?php
echo '<b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>';
?>
</p>
<?php
if ($cInfo->number_of_reviews > 0) {
echo ' <p>' . osc_draw_checkbox_field('delete_reviews', '', true) . ' ' . sprintf(TEXT_DELETE_REVIEWS, $cInfo->number_of_reviews) . '</p>';
}
?>
<p align="center"><?php
echo '<input type="submit" value="' . IMAGE_DELETE . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'cDefault\');" class="operationButton">';
?>
</p>
</form>
</div>
</div>
<?php
}
示例10: osc_draw_label
<ol>
<li>
<?php
echo osc_draw_label($osC_Language->get('field_search_categories'), 'cPath');
$osC_CategoryTree->setSpacerString(' ', 2);
$categories_array = array(array('id' => '', 'text' => $osC_Language->get('filter_all_categories')));
foreach ($osC_CategoryTree->buildBranchArray(0) as $category) {
$categories_array[] = array('id' => $category['id'], 'text' => $category['title']);
}
echo osc_draw_pull_down_menu('cPath', $categories_array);
?>
</li>
<li><?php
echo osc_draw_checkbox_field('recursive', array(array('id' => '1', 'text' => $osC_Language->get('field_search_recursive'))), true);
?>
</li>
<li>
<?php
echo osc_draw_label($osC_Language->get('field_search_manufacturers'), 'manufacturers');
$manufacturers_array = array(array('id' => '', 'text' => $osC_Language->get('filter_all_manufacturers')));
$Qmanufacturers = $osC_Database->query('select manufacturers_id, manufacturers_name from :table_manufacturers order by manufacturers_name');
$Qmanufacturers->bindTable(':table_manufacturers', TABLE_MANUFACTURERS);
$Qmanufacturers->execute();
while ($Qmanufacturers->next()) {
$manufacturers_array[] = array('id' => $Qmanufacturers->valueInt('manufacturers_id'), 'text' => $Qmanufacturers->value('manufacturers_name'));
}
echo osc_draw_pull_down_menu('manufacturers', $manufacturers_array);
?>
示例11: str_replace
</div>
<?php
if (DISPLAY_PRIVACY_CONDITIONS == '1') {
?>
<div class="moduleBox">
<h6><?php
echo $osC_Language->get('create_account_terms_heading');
?>
</h6>
<div class="content">
<?php
$privacy = str_replace('<a href="%s">', '<a href="' . osc_href_link(FILENAME_JSON, 'module=account&action=display_privacy') . '" class="multibox" rel="width:800,height:400,ajax:true">', $osC_Language->get('create_account_terms_description'));
echo $privacy . '<br /><br /><ol><li>' . osc_draw_checkbox_field('privacy_conditions', array(array('id' => 1, 'text' => $osC_Language->get('create_account_terms_confirm')))) . '</li></ol>';
?>
</div>
</div>
<?php
}
?>
<div class="submitFormButtons">
<span style="float: left"><?php
echo osc_draw_image_submit_button('button_continue.gif', $osC_Language->get('button_continue'));
?>
</span>
示例12: osc_draw_input_field
?>
</td>
</tr>
<tr>
<td class="inputField"><?php
echo $osC_Language->get('param_administrator_password') . '<br />' . osc_draw_input_field('CFG_ADMINISTRATOR_PASSWORD', null, 'class="text"');
?>
</td>
<td class="inputDescription"><?php
echo $osC_Language->get('param_administrator_password_description');
?>
</td>
</tr>
<tr>
<td class="inputField"><?php
echo osc_draw_checkbox_field('DB_INSERT_SAMPLE_DATA', 'true', true) . ' ' . $osC_Language->get('param_database_import_sample_data');
?>
</td>
<td class="inputDescription"><?php
echo $osC_Language->get('param_database_import_sample_data_description');
?>
</td>
</tr>
</table>
<p align="right"><?php
echo '<input type="image" src="templates/' . $template . '/languages/' . $osC_Language->getCode() . '/images/buttons/continue.gif" border="0" alt="' . $osC_Language->get('image_button_continue') . '" />';
?>
<?php
echo '<a href="index.php"><img src="templates/' . $template . '/languages/' . $osC_Language->getCode() . '/images/buttons/cancel.gif" border="0" alt="' . $osC_Language->get('image_button_cancel') . '" /></a>';
?>
示例13: osc_link_object
').checked = !document.getElementById('batch<?php
echo $Qstatuses->valueInt('orders_status_id');
?>
').checked;"><?php
echo $status_name;
?>
</td>
<td align="right">
<?php
echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&osID=' . $Qstatuses->valueInt('orders_status_id') . '&action=save'), osc_icon('edit.png')) . ' ' . osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&osID=' . $Qstatuses->valueInt('orders_status_id') . '&action=delete'), osc_icon('trash.png'));
?>
</td>
<td align="center"><?php
echo osc_draw_checkbox_field('batch[]', $Qstatuses->valueInt('orders_status_id'), null, 'id="batch' . $Qstatuses->valueInt('orders_status_id') . '"');
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</form>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
示例14: osc_draw_checkbox_field
<tr>
<td width="30%" valign="top">Import Catalog Database:</td>
<td width="70%" class="smallDesc">
<?php
echo osc_draw_checkbox_field('install[]', 'database', true);
?>
<img src="images/layout/help_icon.gif" onClick="toggleBox('dbImport');"><br>
<div id="dbImportSD">Install the database and add the sample data</div>
<div id="dbImport" class="longDescription">Checking this box will import the database structure, required data, and some sample data. (required for first time installations)</div>
</td>
</tr>
<tr>
<td width="30%" valign="top">Automatic Configuration:</td>
<td width="70%" class="smallDesc">
<?php
echo osc_draw_checkbox_field('install[]', 'configure', true);
?>
<img src="images/layout/help_icon.gif" onClick="toggleBox('autoConfig');"><br>
<div id="autoConfigSD">Save configuration values</div>
<div id="autoConfig" class="longDescription">Checking this box will save all entered data during the installation procedure to the appropriate configuration files on the server.</div>
</td>
</tr>
</table>
<p> </p>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="index.php"><img src="images/button_cancel.gif" border="0" alt="Cancel"></a></td>
<td align="center"><input type="image" src="images/button_continue.gif" border="0" alt="Continue"></td>
</tr>
示例15: osc_draw_input_field
</td>
<td class="smallText" width="60%"><?php
echo osc_draw_input_field('date_expires', $bInfo->expires_date, 'id="calendarValueDEE"');
?>
<input type="button" value="..." id="calendarTriggerDEE" class="operationButton"><script type="text/javascript">Calendar.setup( { inputField: "calendarValueDEE", ifFormat: "%Y-%m-%d", button: "calendarTriggerDEE" } );</script><?php
echo TEXT_BANNERS_OR_AT . '<br>' . osc_draw_input_field('expires_impressions', $bInfo->expires_impressions, 'maxlength="7" size="7"') . ' ' . TEXT_BANNERS_IMPRESSIONS;
?>
</td>
</tr>
<tr>
<td class="smallText" width="40%"><?php
echo '<b>' . TEXT_BANNERS_STATUS . '</b>';
?>
</td>
<td class="smallText" width="60%"><?php
echo osc_draw_checkbox_field('status', 'on', $bInfo->status == 1 ? true : false);
?>
</td>
</tr>
</table>
<p align="center"><?php
echo '<input type="submit" value="' . IMAGE_SAVE . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'bDefault\');" class="operationButton">';
?>
</p>
</form>
</div>
<p><?php
echo TEXT_BANNERS_BANNER_NOTE . '<br>' . TEXT_BANNERS_INSERT_NOTE . '<br>' . TEXT_BANNERS_EXPIRCY_NOTE . '<br>' . TEXT_BANNERS_SCHEDULE_NOTE;