本文整理汇总了PHP中smn_draw_textarea_field函数的典型用法代码示例。如果您正苦于以下问题:PHP smn_draw_textarea_field函数的具体用法?PHP smn_draw_textarea_field怎么用?PHP smn_draw_textarea_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smn_draw_textarea_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smn_get_languages
<?php
}
$languages = smn_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$language_id = $languages[$i]['id'];
?>
<tr>
<td align="left" valign="top" class="main"><?php
if ($i == 0) {
echo COUPON_DESC;
}
?>
</td>
<td align="left" valign="top"><?php
echo smn_draw_textarea_field('coupon_desc[' . $languages[$i]['id'] . ']', 'physical', '24', '3', $coupon_desc[$language_id]) . ' ' . smn_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']);
?>
</td>
<td align="left" valign="top" class="main"><?php
if ($i == 0) {
echo COUPON_DESC_HELP;
}
?>
</td>
</tr>
<?php
}
?>
<tr>
<td align="left" class="main"><?php
echo COUPON_AMOUNT;
示例2: smn_draw_separator
} else {
echo ' <tr>' . "\n" .
' <td class="smallText" colspan="5">' . TEXT_NO_ORDER_HISTORY . '</td>' . "\n" .
' </tr>' . "\n";
}
?>
</table></td>
</tr>
<tr>
<td class="main"><br><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td>
</tr>
<tr>
<td><?php echo smn_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
</tr>
<tr><?php echo smn_draw_form('status', smn_href_link(FILENAME_STORE_ORDER_EDIT, smn_get_all_get_params(array('action')) . 'action=update_order&ID='.$store_id,'NONSSL'),'POST'); ?>
<td class="main"><?php echo smn_draw_textarea_field('comments', 'soft', '60', '5'); ?></td>
</tr>
<tr>
<td><?php echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b><?php echo ENTRY_STATUS; ?></b> <?php echo smn_draw_pull_down_menu('status', $orders_statuses, $order->info['orders_status']); ?></td>
</tr>
<tr>
<td class="main"><b><?php echo ENTRY_NOTIFY_CUSTOMER; ?></b> <?php echo smn_draw_checkbox_field('notify', '', true); ?></td>
<td class="main"><b><?php echo ENTRY_NOTIFY_COMMENTS; ?></b> <?php echo smn_draw_checkbox_field('notify_comments', '', true); ?></td>
</tr>
示例3: smn_image
</td>
<td class="main" align="right" valign="top"><?php
echo smn_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"');
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><table witdh="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main" valign="top"><b><?php
echo ENTRY_REVIEW;
?>
</b><br><br><?php
echo smn_draw_textarea_field('reviews_text', 'soft', '60', '15', $rInfo->reviews_text);
?>
</td>
</tr>
<tr>
<td class="smallText" align="right"><?php
echo ENTRY_REVIEW_TEXT;
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
示例4: smn_draw_separator
</td>
</tr>
<tr>
<td colspan="2"><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td valign="top" class="main"><?php
echo TEXT_BANNERS_HTML_TEXT;
?>
</td>
<td class="main"><?php
echo smn_draw_textarea_field('banners_html_text', 'soft', '60', '5', $bInfo->banners_html_text);
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td valign="top" class="main"><?php
echo TEXT_BANNERS_CATEGORY;
?>
</td>
示例5: count
echo "<form name='edit_form' action='{$PHP_SELF}' method='post'>\n";
$n = count($languages);
reset($languages);
for ($i = 0; $i < $n; $i++) {
$additional_info_query_raw = "SELECT add_desc_id,\n\t\t\tcontext,\n\t\t\tcontext_value,\n\t\t\tadditional_description,\n\t\t\tlanguage,\n\t\t\tsort_order \n\tFROM " . TABLE_ADD_INFO . " where context='{$what_info}'\n and context_value='{$what_info_id}'\n and language = '" . $languages[$i]['directory'] . "'\n order by sort_order,language ";
$additional_info_query = smn_db_query($additional_info_query_raw);
if (mysql_num_rows($additional_info_query) == '1') {
$action = 'update';
} else {
$action = 'insert';
}
$additional_info = smn_db_fetch_array($additional_info_query);
echo "<input type='hidden' name='action[]' value='{$action}'>\n";
echo smn_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']);
echo "<br>\n";
echo smn_draw_textarea_field('description[]', 'soft', '70', '10', $additional_info['additional_description']);
echo "<input type='hidden' name='lang[]' value='" . $languages[$i]['directory'] . "'><br>\n";
}
echo "<input type='hidden' name='context' value='{$what_info}'>\n";
echo "<input type='hidden' name='context_value' value='{$what_info_id}'>\n";
echo "<input type='submit' name='submit' value='submit'>\n";
echo "<input type='hidden' name='task' value='process_edit'>\n";
echo "</form>\n";
}
if ($HTTP_POST_VARS['task'] == 'process_edit') {
$n_action = count($HTTP_POST_VARS['action']);
reset($HTTP_POST_VARS['action']);
for ($ia = 0; $ia < $n_action; $ia++) {
$add_text = $HTTP_POST_VARS['description'][$ia];
// $add_text = nl2br($add_text);
$add_language = $HTTP_POST_VARS['lang'][$ia];
示例6: smn_draw_textarea_field
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b><?php
echo TABLE_HEADING_COMMENTS;
?>
</b></td>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><?php
echo smn_draw_textarea_field('comments', 'soft', 50, 15, smn_sanitize_string($_POST['comments']), '', false);
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
示例7: array
that is bundled with this package in the file LICENSE. If you
did not receive a copy of the oscMall System license and are unable
to obtain it through the world-wide-web, please send a note to
license@systemsmanager.net so we can mail you a copy immediately.
*/
$descriptionEditButton = $jQuery->getPluginClass('button', array('id' => 'descriptionEditButton', 'text' => 'Edit Description'));
/* Description Edit Window Setup - BEGIN */
$languageTabs = array();
$languageTabsContent = array();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$tabID = 'langTabs-description_edit-content' . $languages[$i]['id'];
$languageTabs[] = array('tabID' => $tabID, 'text' => $languages[$i]['name']);
$languageTabsContent[] = array('tabID' => $tabID, 'content' => '
<table cellpadding="3" cellspacing="0" border="0">
<tr>
<td>' . smn_draw_textarea_field('store_description[' . $languages[$i]['id'] . ']', 'soft', '100', '30', '', 'id="store_description_' . $languages[$i]['id'] . '"') . '</td>
</tr>
</table>');
}
$descriptionEditWindowLangTabs = $jQuery->getPluginClass('tabs', array('id' => 'langTabs-description_edit', 'tabs' => $languageTabs, 'tabsContent' => $languageTabsContent));
$descriptionEditWindowLangTabs->removeScriptOutput();
$descriptionEditWindow = $jQuery->getStandAloneClass('box_window', array('id' => 'div_description_edit', 'show_header' => true, 'show_footer' => true, 'header_text' => 'Edit Store Description', 'form' => '<form id="form_description_edit" action="' . $jQuery->link(basename($_SERVER['PHP_SELF']), 'action=saveDescription') . '" method="post">', 'buttons' => array($commonSaveButton, $commonCancelButton), 'content' => $descriptionEditWindowLangTabs->output()));
/* Description Edit Window Setup - END */
?>
<script language="Javascript">
$(document).ready(function (){
$('#<?php
echo $descriptionEditButton->getID();
?>
').unbind('click').click(function (){
var $mainTable = $('#descriptionTable');
示例8: smn_draw_separator
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td valign="top" class="main"><?php
echo TEXT_MESSAGE;
?>
</td>
<td><?php
echo smn_draw_textarea_field('message', 'soft', '60', '15');
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td colspan="2" align="right"><?php
echo smn_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL);
?>
</td>
</tr>
示例9: smn_draw_input_field
} else {
echo smn_draw_input_field('new_store_name', $sInfo->store_name, 'maxlength="32"', true);
}
?>
</td>
</tr>
<tr>
<td class="main" valign="top"><?php
echo TEXT_STORE_DESCRIPTION;
?>
</td>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main">
<?php
echo smn_draw_textarea_field('store_description', 'soft', '70', '15', $sInfo->store_description);
$java_editor = 'store_description';
?>
</td>
<br>
</tr>
</table></td>
</tr>
<?php
$newsletter_array = array(array('id' => '1', 'text' => ENTRY_NEWSLETTER_YES), array('id' => '0', 'text' => ENTRY_NEWSLETTER_NO));
?>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '1', '20');
?>
</td>
示例10: smn_draw_input_field
<tr>
<td>' . smn_draw_input_field('page_header[' . $lID . ']', '', 'id="page_header_' . $lID . '"') . '</td>
</tr>
<tr>
<td class="main"><b>Title of New Page:</b></td>
</tr>
<tr>
<td>' . smn_draw_input_field('page_heading[' . $lID . ']', '', 'id="page_heading_' . $lID . '"') . '</td>
</tr>
</table></td>
<td valign="top"><table cellpadding="3" cellspacing="0" border="0">
<tr>
<td valign="top" class="main"><b>Page Contents:</b></td>
</tr>
<tr>
<td>' . smn_draw_textarea_field('text_content[' . $lID . ']', 'soft', '100', '30', '', 'id="text_content_' . $lID . '"') . '</td>
</tr>
</table></td>
</tr>
</table>');
}
$infoPagesEditWindowLangTabs = $jQuery->getPluginClass('tabs', array('id' => 'langTabs-info_pages_edit', 'tabs' => $languageTabs, 'tabsContent' => $languageTabsContent));
$infoPagesEditWindowLangTabs->removeScriptOutput();
$infoPagesEditWindow = $jQuery->getStandAloneClass('box_window', array('id' => 'div_info_pages_edit', 'show_header' => true, 'show_footer' => true, 'header_text' => 'Edit Info Page', 'buttons' => array($commonSaveButton, $commonCancelButton), 'form' => '<form id="form_infoPagesEdit" action="' . $jQuery->link(basename($_SERVER['PHP_SELF']), 'action=saveInfoPage') . '" method="post"><input type="hidden" name="hidden_action" id="hidden_action" value="new"><input type="hidden" name="page_id" id="page_id" value="">', 'content' => '<table cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="main"><b>Create New Page Category:</b> ' . smn_draw_input_field('page_name', '', 'id="page_name"') . '</td>
</tr>
<tr>
<td>' . $infoPagesEditWindowLangTabs->output() . '</td>
</tr>
</table>'));
示例11: smn_draw_separator
</td>
</tr>
<tr>
<td colspan="2"><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo TEXT_AFFILIATE_NEWS_CONTENT;
?>
</td>
<!--Changed the array index content to affiliate_news_contents,By Cimi -->
<td class="main"><?php
echo smn_draw_separator('pixel_trans.gif', '24', '15') . ' ' . smn_draw_textarea_field('content', 'soft', '70', '15', stripslashes($affiliate_news['affiliate_news_contents']));
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main" align="right">
<?php
isset($_GET['affiliate_news_id']) ? $cancel_button = ' <a href="' . smn_href_link(FILENAME_AFFILIATE_NEWS, 'affiliate_news_id=' . $_GET['affiliate_news_id']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>' : ($cancel_button = '');
示例12: smn_draw_separator
</tr>
</table></td>
</tr>
<?php
}
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
<tr>
<td colspan="2"><?php echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main" valign="top"><?php if ($i == 0) echo TEXT_PRODUCTS_KEYWORDS; ?></td>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main" valign="top"><?php echo smn_image(DIR_WS_LANGUAGES . 'images/' . $languages[$i]['image'], $languages[$i]['name']); ?> </td>
<td class="main"><?php echo smn_draw_textarea_field('products_head_keywords_tag[' . $languages[$i]['id'] . ']', 'soft', '70', '5', (isset($products_head_keywords_tag[$languages[$i]['id']]) ? $products_head_keywords_tag[$languages[$i]['id']] : smn_get_products_head_keywords_tag($pInfo[products_id], $languages[$i]['id']))); ?></td>
</tr>
</table></td>
</tr>
<?php
}
?>
<tr>
<td colspan="2"><?php echo smn_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
</table>
</div>
示例13: smn_draw_separator
<td><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main" valign="top"><?php
echo TEXT_PRODUCTS_KEYWORDS;
?>
</td>
</tr>
<tr>
<td><table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="main" valign="top" width="100%"><?php
echo smn_draw_textarea_field('products_head_keywords_tag[' . $languages[$i]['id'] . ']', 'soft', '70', '5', isset($products_head_keywords_tag[$languages[$i]['id']]) ? $products_head_keywords_tag[$languages[$i]['id']] : smn_get_products_head_keywords_tag($pInfo->products_id, $languages[$i]['id']));
?>
</td>
</tr>
</table></td>
</tr>
</table>
<?php
$langTabContent = ob_get_contents();
ob_end_clean();
$langTabPanel->addTabContent($tabID, $langTabContent);
unset($langTabContent);
}
echo $langTabPanel->output();
?>
示例14: array
$siteTextGridDeleteButton = $jQuery->getPluginClass('button', array('id' => 'siteTextDeleteButton', 'text' => $siteText->getText('image_button_delete')));
$siteTextGridInsertButton = $jQuery->getPluginClass('button', array('id' => 'siteTextInsertButton', 'text' => $siteText->getText('image_button_new')));
$pageNameDeleteButton = $jQuery->getPluginClass('button', array('id' => 'pageNameDeleteButton', 'text' => $siteText->getText('image_button_delete_page')));
$gridColumns = array(array('id' => 'text_key', 'text' => $siteText->getText('table_heading_text_key')), array('id' => 'page_name', 'text' => $siteText->getText('table_heading_page_name')), array('id' => 'date_modified', 'text' => $siteText->getText('table_heading_date_modified'), 'hidden' => true));
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$gridColumns[] = array('id' => 'text_content_' . $languages[$i]['id'], 'text' => $siteText->getText('table_heading_page_content') . ($languages[$i]['id'] == $languages_id ? '' : ' [' . $languages[$i]['name'] . ']'), 'hidden' => $languages[$i]['id'] == $languages_id ? false : true);
}
$siteTextGrid = $jQuery->getPluginClass('basicgrid', array('id' => 'siteTextGrid', 'paging' => true, 'mode' => 'local', 'page_size' => 20, 'columns' => $gridColumns, 'data' => $siteTextGridData, 'buttons' => array($siteTextGridInsertButton, $siteTextGridEditButton, $siteTextGridDeleteButton)));
/* Site Text Grid Setup - END */
/* Site Text Grid Edit Window Setup - BEGIN */
$languageTabs = array();
$languageTabsContent = array();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$tabID = 'langTabs-site_text_edit-content' . $languages[$i]['id'];
$languageTabs[] = array('tabID' => $tabID, 'text' => $languages[$i]['name']);
$languageTabsContent[] = array('tabID' => $tabID, 'content' => smn_draw_textarea_field('text_content[' . $languages[$i]['id'] . ']', 'soft', '60', '7', '', 'id="text_content_' . $languages[$i]['id'] . '"'));
}
$siteTextEditWindowLangTabs = $jQuery->getPluginClass('tabs', array('id' => 'langTabs-site_text_edit', 'tabs' => $languageTabs, 'tabsContent' => $languageTabsContent));
$siteTextEditWindowLangTabs->removeScriptOutput();
$siteTextEditWindow = $jQuery->getStandAloneClass('box_window', array('id' => 'div_site_text_edit', 'show_header' => true, 'show_footer' => true, 'header_text' => ' ', 'buttons' => array($commonSaveButton, $commonCancelButton), 'form' => '<form id="form_siteTextEdit" action="' . $jQuery->link(basename($_SERVER['PHP_SELF']), 'action=saveSiteText') . '" method="post"><input type="hidden" name="hidden_action" id="hidden_action" value="new">', 'content' => '<table cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="main">' . $siteText->getText('text_info_text_key') . '</td>
<td>' . smn_draw_input_field('text_key', '', 'id="text_key"') . '</td>
</tr>
<tr>
<td class="main">' . $siteText->getText('text_info_page_name') . '</td>
<td>' . smn_draw_pull_down_menu('page_name', $pagesArray, '', 'id="page_name"') . '</td>
</tr>
<tr>
<td class="main">' . $siteText->getText('text_info_new_page_name') . '</td>
<td>' . smn_draw_input_field('new_page_name', '', 'id="new_page_name"') . '</td>
示例15: smn_draw_textarea_field
?>
</td>
</tr>
<tr>
<td class="main"><b><?php
echo SUB_TITLE_REVIEW;
?>
</b></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<td><?php
echo smn_draw_textarea_field('review', 'soft', 50, 15, smn_sanitize_string($_POST['review']), '', false);
?>
</td>
</tr>
<tr>
<td class="smallText" align="right"><?php
echo TEXT_NO_HTML;
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo '<b>' . SUB_TITLE_RATING . '</b> ' . TEXT_BAD . ' ' . smn_draw_radio_field('rating', '1') . ' ' . smn_draw_radio_field('rating', '2') . ' ' . smn_draw_radio_field('rating', '3') . ' ' . smn_draw_radio_field('rating', '4') . ' ' . smn_draw_radio_field('rating', '5') . ' ' . TEXT_GOOD;
?>
</td>
</tr>