<p><label for="countries_iso_code_2"><?php echo OSCOM::getDef('field_iso_code_2'); ?> </label><?php echo HTML::inputField('countries_iso_code_2', $OSCOM_ObjectInfo->get('countries_iso_code_2')); ?> </p> <p><label for="countries_iso_code_3"><?php echo OSCOM::getDef('field_iso_code_3'); ?> </label><?php echo HTML::inputField('countries_iso_code_3', $OSCOM_ObjectInfo->get('countries_iso_code_3')); ?> </p> <p><label for="address_format"><?php echo OSCOM::getDef('field_address_format'); ?> </label><?php echo HTML::textareaField('address_format', $OSCOM_ObjectInfo->get('address_format')); ?> <br /><i>:name</i>, <i>:street_address</i>, <i>:suburb</i>, <i>:city</i>, <i>:postcode</i>, <i>:state</i>, <i>:state_code</i>, <i>:country</i></p> </fieldset> <p><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?> </p> </form> </div>
echo OSCOM::getLink(null, null, 'Contact&Process'); ?> " method="post"> <div class="moduleBox"> <div class="content"> <ol> <li><?php echo HTML::label(OSCOM::getDef('contact_name_title'), 'name') . HTML::inputField('name'); ?> </li> <li><?php echo HTML::label(OSCOM::getDef('contact_email_address_title'), 'email') . HTML::inputField('email'); ?> </li> <li><?php echo HTML::label(OSCOM::getDef('contact_enquiry_title'), 'enquiry') . HTML::textareaField('enquiry', null, 50, 15); ?> </li> </ol> </div> </div> <div class="submitFormButtons" style="text-align: right;"> <?php echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))); ?> </div> </form>
<li><?php echo HTML::label(ENTRY_NAME, 'customer_name') . HTML::inputField('customer_name'); ?> </li> <li><?php echo HTML::label(OSCOM::getDef('field_customer_email_address'), 'customer_email_address') . HTML::inputField('customer_email_address'); ?> </li> <?php } ?> <li><?php echo HTML::textareaField('review', null, null, 15, 'style="width: 98%;"'); ?> </li> <li><?php echo OSCOM::getDef('field_review_rating') . ' ' . OSCOM::getDef('review_lowest_rating_title') . ' ' . HTML::radioField('rating', array('1', '2', '3', '4', '5')) . ' ' . OSCOM::getDef('review_highest_rating_title'); ?> </li> </ol> </div> </div> <div class="submitFormButtons"> <span style="float: right;"><?php echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))); ?> </span>
<fieldset> <p><label for="key"><?php echo OSCOM::getDef('field_definition_key'); ?> </label><?php echo HTML::inputField('key'); ?> </p> <p><label><?php echo OSCOM::getDef('field_definition_value'); ?> </label> <?php foreach ($OSCOM_Language->getAll() as $l) { echo '<br />' . $OSCOM_Language->showImage($l['code']) . '<br />' . HTML::textareaField('value[' . $l['id'] . ']'); } ?> </p> <p><label for="defgroup"><?php echo OSCOM::getDef('field_definition_group'); ?> </label><?php echo HTML::inputField('defgroup', isset($_GET['group']) ? $_GET['group'] : null); ?> </p> </fieldset> <p><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id'] . (isset($_GET['group']) ? '&group=' . $_GET['group'] : '')), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
} ?> </table> </div> </div> <div class="moduleBox"> <h6><?php echo OSCOM::getDef('add_comment_to_order_title'); ?> </h6> <div class="content"> <?php echo HTML::textareaField('comments', isset($_SESSION['comments']) ? $_SESSION['comments'] : null, null, null, 'style="width: 98%;"'); ?> </div> </div> <br /> <div class="moduleBox"> <div class="content"> <div style="float: right;"> <?php echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))); ?> </div> <?php
</h3> <form name="lDefineBatch" class="dataForm" action="<?php echo OSCOM::getLink(null, null, 'BatchSaveDefinitions&Process&id=' . $_GET['id'] . '&group=' . $_GET['group']); ?> " method="post"> <p><?php echo OSCOM::getDef('introduction_edit_language_definitions'); ?> </p> <fieldset> <?php foreach ($_POST['batch'] as $id) { $OSCOM_ObjectInfo = new ObjectInfo(Languages::getDefinition($id)); echo '<p><label for="def[' . $OSCOM_ObjectInfo->getProtected('definition_key') . ']">' . $OSCOM_ObjectInfo->getProtected('definition_key') . '</label>' . HTML::textareaField('def[' . $OSCOM_ObjectInfo->get('definition_key') . ']', $OSCOM_ObjectInfo->get('definition_value')) . HTML::hiddenField('batch[]', $OSCOM_ObjectInfo->getInt('id')) . '</p>'; } ?> </fieldset> <p><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id'] . '&group=' . $_GET['group']), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?> </p> </form> </div>
echo sprintf(OSCOM::getDef('error_configuration_file_not_writeable'), OSCOM::BASE_DIRECTORY . 'Config/settings.ini'); ?> </p> <p align="right"><?php echo HTML::button(array('icon' => 'refresh', 'title' => OSCOM::getDef('button_retry'))); ?> </p> <p><?php echo OSCOM::getDef('error_configuration_file_alternate_method'); ?> </p> <?php echo HTML::textareaField('contents', $file_contents, 60, 5, 'readonly="readonly" style="width: 100%; height: 120px;"', false); ?> </div> <?php foreach ($_POST as $key => $value) { if ($key != 'x' && $key != 'y') { if (is_array($value)) { for ($i = 0, $n = count($value); $i < $n; $i++) { echo HTML::hiddenField($key . '[]', $value[$i]); } } else { echo HTML::hiddenField($key, $value); } } }
?> </li> </ol> </div> </div> <div class="moduleBox"> <h6><?php echo OSCOM::getDef('tell_a_friend_message'); ?> </h6> <div class="content"> <ol> <li><?php echo HTML::textareaField('message', null, 40, 8, 'style="width: 98%;"'); ?> </li> </ol> </div> </div> <div class="submitFormButtons"> <span style="float: right;"><?php echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))); ?> </span> <?php echo HTML::button(array('href' => OSCOM::getLink(null, null, $OSCOM_Product->getKeyword()), 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back'))); ?>
<?php foreach ( $OSCOM_Language->getAll() as $l ) { echo '<li>' . HTML::link('#languageTabs_' . $l['code'], $OSCOM_Language->showImage($l['code']) . ' ' . $l['name']) . '</li>'; } ?> </ul> <?php foreach ( $OSCOM_Language->getAll() as $l ) { ?> <div id="languageTabs_<?php echo $l['code']; ?>"> <fieldset> <p><label for="<?php echo 'products_name[' . $l['id'] . ']'; ?>"><?php echo OSCOM::getDef('field_name'); ?></label><?php echo HTML::inputField('products_name[' . $l['id'] . ']', (!$new_product && isset($products_name[$l['id']]) ? $products_name[$l['id']] : null)); ?></p> <p><label for="<?php echo 'products_description[' . $l['id'] . ']'; ?>"><?php echo OSCOM::getDef('field_description'); ?></label><?php echo HTML::textareaField('products_description[' . $l['id'] . ']', (!$new_product && isset($products_description[$l['id']]) ? $products_description[$l['id']] : null)); ?></p> <p><label for="<?php echo 'products_keyword[' . $l['id'] . ']'; ?>"><?php echo OSCOM::getDef('field_keyword'); ?></label><?php echo HTML::inputField('products_keyword[' . $l['id'] . ']', (!$new_product && isset($products_keyword[$l['id']]) ? $products_keyword[$l['id']] : null)); ?></p> <p><label for="<?php echo 'products_tags[' . $l['id'] . ']'; ?>"><?php echo OSCOM::getDef('field_tags'); ?></label><?php echo HTML::inputField('products_tags[' . $l['id'] . ']', (!$new_product && isset($products_tags[$l['id']]) ? $products_tags[$l['id']] : null)); ?></p> <p><label for="<?php echo 'products_url[' . $l['id'] . ']'; ?>"><?php echo OSCOM::getDef('field_url'); ?></label><?php echo HTML::inputField('products_url[' . $l['id'] . ']', (!$new_product && isset($products_url[$l['id']]) ? $products_url[$l['id']] : null)); ?></p> </fieldset> </div> <?php } ?> </div> </div> </div> <script>
function osc_cfg_set_textarea_field($default, $key = null) { $name = !empty($key) ? 'configuration[' . $key . ']' : 'configuration_value'; return HTML::textareaField($name, $default, 35, 5); }
<p><label for="countries_iso_code_2"><?php echo OSCOM::getDef('field_iso_code_2'); ?> </label><?php echo HTML::inputField('countries_iso_code_2'); ?> </p> <p><label for="countries_iso_code_3"><?php echo OSCOM::getDef('field_iso_code_3'); ?> </label><?php echo HTML::inputField('countries_iso_code_3'); ?> </p> <p><label for="address_format"><?php echo OSCOM::getDef('field_address_format'); ?> </label><?php echo HTML::textareaField('address_format'); ?> <br /><i>:name</i>, <i>:street_address</i>, <i>:suburb</i>, <i>:city</i>, <i>:postcode</i>, <i>:state</i>, <i>:state_code</i>, <i>:country</i></p> </fieldset> <p><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?> </p> </form> </div>
public function testTextareaField() { $this->assertEquals('<textarea name="description" cols="6" rows="65" id="taDescription">Description</textarea>', HTML::textareaField('description', 'Description', 6, 65, 'id="taDescription"')); }
<form name="lDefine" class="dataForm" action="<?php echo OSCOM::getLink(null, null, 'EditDefinition&Process&id=' . $_GET['id'] . '&group=' . $_GET['group']); ?> " method="post"> <p><?php echo OSCOM::getDef('introduction_edit_language_definitions'); ?> </p> <fieldset> <p><label for="def[<?php echo $OSCOM_ObjectInfo->getProtected('definition_key'); ?> ]"><?php echo $OSCOM_ObjectInfo->getProtected('definition_key'); ?> </label><?php echo HTML::textareaField('def[' . $OSCOM_ObjectInfo->get('definition_key') . ']', $OSCOM_ObjectInfo->get('definition_value')); ?> </p> </fieldset> <p><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id'] . '&group=' . $_GET['group']), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?> </p> </form> </div>