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


PHP create_textarea函数代码示例

本文整理汇总了PHP中create_textarea函数的典型用法代码示例。如果您正苦于以下问题:PHP create_textarea函数的具体用法?PHP create_textarea怎么用?PHP create_textarea使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: create_textarea

 public static final function create_textarea($enablewysiwyg, $id, $name, $text, $cols = '80', $rows = '15', $addtext = '', $required = false)
 {
     if ($required) {
         $addtext .= ' required="required"';
     }
     return create_textarea($enablewysiwyg, $text, $id . $name, 'cms_textarea', $name, '', '', $cols, $rows, '', '', $addtext);
 }
开发者ID:designondemand,项目名称:formbuilder,代码行数:7,代码来源:class.formbuilder_utils.php

示例2: EditAsArray

 function EditAsArray($adding = false, $tab = 0, $showadmin = false)
 {
     global $gCms;
     $config = $gCms->config;
     $contentops =& $gCms->GetContentOperations();
     $templateops =& $gCms->GetTemplateOperations();
     $ret = array();
     switch ($tab) {
         case 0:
             array_push($ret, array(lang('title') . ':', '<input type="text" name="title" value="' . $this->mName . '">'));
             array_push($ret, array(lang('menutext') . ':', '<input type="text" name="menutext" value="' . $this->mMenuText . '">'));
             array_push($ret, array(lang('parent') . ':', $contentops->CreateHierarchyDropdown($this->mId, $this->mParentId)));
             array_push($ret, array(lang('template') . ':', $templateops->TemplateDropdown('template_id', $this->mTemplateId)));
             array_push($ret, array($this->Lang('multiplealbumtemplate') . ':', $this->TemplateDropdown('album_template', $this->GetPropertyValue('album_template'))));
             array_push($ret, array($this->Lang('Albums') . ':', $this->AlbumsSelect('albums', $this->GetPropertyValue('albums'))));
             break;
         case 1:
             array_push($ret, array(lang('pagealias') . ':', '<input type="text" name="alias" value="' . $this->mAlias . '">'));
             array_push($ret, array(lang('active') . ':', '<input type="checkbox" name="active"' . ($this->mActive ? ' checked="true"' : '') . '>'));
             array_push($ret, array(lang('showinmenu') . ':', '<input type="checkbox" name="showinmenu"' . ($this->mShowInMenu ? ' checked="true"' : '') . '>'));
             array_push($ret, array(lang('metadata') . ':', create_textarea(false, $this->Metadata(), 'metadata', 'pagesmalltextarea', 'metadata', '', '', '80', '6')));
             array_push($ret, array(lang('titleattribute') . ':', '<input type="text" name="titleattribute" maxlength="255" value="' . cms_htmlentities($this->mTitleAttribute) . '" />'));
             array_push($ret, array(lang('tabindex') . ':', '<input type="text" name="tabindex" maxlength="10" value="' . cms_htmlentities($this->mTabIndex) . '" />'));
             array_push($ret, array(lang('accesskey') . ':', '<input type="text" name="accesskey" maxlength="5" value="' . cms_htmlentities($this->mAccessKey) . '" />'));
             if (!$adding && $showadmin) {
                 global $gCms;
                 $userops =& $gCms->GetUserOperations();
                 $ret[] = array(lang('owner') . ':', $userops->GenerateDropdown($this->Owner()));
             }
     }
     return $ret;
 }
开发者ID:aldrymaulana,项目名称:cmsdepdagri,代码行数:32,代码来源:class.AlbumContent.php

示例3: GetBlockInput

 public function GetBlockInput()
 {
     if (!$this->GetBlockProperty('oneline')) {
         return create_textarea($this->GetBlockProperty('usewysiwyg'), $this->content_obj->GetPropertyValue($this->GetBlockProperty('id')), $this->GetBlockProperty('id'), $this->GetBlockProperty('auto_resize') ? 'AdvancedContent_textarea' : '', $this->GetBlockProperty('id'), '', $this->content_obj->GetStylesheet(), $this->GetBlockProperty('cols') ? $this->GetBlockProperty('cols') : 80, $this->GetBlockProperty('rows') ? $this->GetBlockProperty('rows') : 15, '', '', $this->GetBlockProperty('cols') || $this->GetBlockProperty('rows') ? 'style="' . ($this->GetBlockProperty('cols') ? 'width:auto;' : '') . ($this->GetBlockProperty('rows') ? 'height:auto;' : '') . '"' : '');
     } else {
         return '<input id="' . $this->GetBlockProperty('id') . '" type="text"' . ($this->GetBlockProperty('style') != '' ? 'style="' . $this->GetBlockProperty('style') . ' "' : '') . ($this->GetBlockProperty('maxlength') != '' ? ' maxlength="' . $this->GetBlockProperty('maxlength') . ' "' : '') . ($this->GetBlockProperty('size') != '' ? ' size="' . $this->GetBlockProperty('size') . ' "' : '') . ' name="' . $this->GetBlockProperty('id') . '" value="' . htmlspecialchars($this->content_obj->GetPropertyValue($this->GetBlockProperty('id'))) . '" />';
     }
 }
开发者ID:aldrymaulana,项目名称:cmsdepdagri,代码行数:8,代码来源:class.acBlockType_text.php

示例4: lang

		<div id="editab1"><?php 
    echo lang('mediatype');
    ?>
</div>
    </div>
    <div class="clearb"></div>
    <div id="page_content">
	<div id="editab0_c">
        <div class="pageoverflow">
            <p class="pagetext"><?php 
    echo lang('media_query');
    ?>
:<br/>
            <div class="pageinput">
              <?php 
    echo create_textarea(false, $media_query, 'media_query', 'pageextrasmalltextarea', 'media_query', '', '', '30', '5', '', '');
    ?>
	      <br/><?php 
    echo lang('media_query_description');
    ?>
            </div>
        </div> 
   </div>
   <div id="editab1_c">	
		<div class="pageoverflow">
			<p class="pagetext"><?php 
    echo lang('mediatype');
    ?>
:</p>
			<div class="pageinput">
<?php 
开发者ID:rainbow-studio,项目名称:cmsms,代码行数:31,代码来源:editcss.php

示例5: cge_wysiwyg

 public static function cge_wysiwyg($params, &$smarty)
 {
     if (!isset($params['name'])) {
         throw new Exceptin('cge_wysiwyg missing parameter: name');
     }
     $name = trim($params['name']);
     if (isset($params['prefix'])) {
         $name = trim($params['prefix']) . $name;
     }
     $value = '';
     if (isset($params['value'])) {
         $value = trim($params['value']);
     }
     $id = '';
     if (isset($params['id'])) {
         $id = trim($params['id']);
     }
     $rows = 15;
     $cols = 80;
     if (isset($params['rows'])) {
         $rows = (int) $params['rows'];
     }
     if (isset($params['cols'])) {
         $rows = (int) $params['cols'];
     }
     $tmp = create_textarea(true, $value, $name, '', $id, '', '', $cols, $rows);
     if (isset($params['assign'])) {
         $smarty->assign($params['assign'], $tmp);
         return;
     }
     return $tmp;
 }
开发者ID:aldrymaulana,项目名称:cmsdepdagri,代码行数:32,代码来源:class.cge_smarty_plugins.php

示例6: create_textarea

$smarty->assign('active_sitedown', 0);
$smarty->assign('active_setup', 0);
$smarty->assign('active_general', $active_tab == 'general' ? 1 : 0);
$smarty->assign('active_sitedown', $active_tab == 'sitedown' ? 1 : 0);
$smarty->assign('active_setup', $active_tab == 'setup' ? 1 : 0);
$smarty->assign('SECURE_PARAM_NAME', CMS_SECURE_PARAM_NAME);
$smarty->assign('CMS_USER_KEY', $_SESSION[CMS_USER_KEY]);
$smarty->assign('sitename', $sitename);
$smarty->assign('global_umask', $global_umask);
$smarty->assign('testresults', $testresults);
$smarty->assign('frontendlang', $frontendlang);
$smarty->assign('frontendwysiwyg', $frontendwysiwyg);
$smarty->assign('nogcbwysiwyg', $nogcbwysiwyg);
$smarty->assign('metadata', $metadata);
$smarty->assign('enablesitedownmessage', $enablesitedownmessage);
$smarty->assign('textarea_sitedownmessage', create_textarea(true, $sitedownmessage, 'sitedownmessage', 'pagesmalltextarea'));
$smarty->assign('urlcheckversion', $urlcheckversion);
$smarty->assign('clear_vc_cache', $clear_vc_cache);
$smarty->assign('disablesafemodewarning', $disablesafemodewarning);
$smarty->assign('allowparamcheckwarnings', $allowparamcheckwarnings);
$smarty->assign('defaultdateformat', $defaultdateformat);
$smarty->assign('enablenotifications', $enablenotifications);
$smarty->assign('sitedownexcludes', $sitedownexcludes);
$smarty->assign('basic_attributes', explode(',', $basic_attributes));
$smarty->assign('thumbnail_width', $thumbnail_width);
$smarty->assign('thumbnail_height', $thumbnail_height);
$smarty->assign('auto_clear_cache_age', $auto_clear_cache_age);
$smarty->assign('pseudocron_granularity', $pseudocron_granularity);
$tmp = array(15 => lang('cron_15m'), 30 => lang('cron_30m'), 60 => lang('cron_60m'), 120 => lang('cron_120m'), 180 => lang('cron_3h'), 360 => lang('cron_6h'), 12 * 60 => lang('cron_12h'), 24 * 60 => lang('cron_24h'), -1 => lang('cron_request'));
$smarty->assign('pseudocron_options', $tmp);
$smarty->assign('lang_pseudocron_granularity', lang('pseudocron_granularity'));
开发者ID:rasomu,项目名称:chuza,代码行数:31,代码来源:siteprefs.php

示例7: lang

            echo ' checked="checked"';
        }
        ?>
/></p>
            </div>					
			<?php 
    }
    ?>
      
		<div class="pageoverflow">
			<p class="pagetext">*<?php 
    echo lang('content');
    ?>
:</p>
			<p class="pageinput"><?php 
    echo create_textarea($gcb_wysiwyg && $use_wysiwyg, $content, 'content', 'wysiwyg', 'content');
    ?>
</p>
		</div>
		<div class="pageoverflow">
		       <p class="pagetext"><?php 
    echo lang('description');
    ?>
:</p>
		       <p class="pageinput"><textarea name="description"><?php 
    echo $description;
    ?>
</textarea></p>
		</div>
               																		               
	<?php 
开发者ID:aldrymaulana,项目名称:cmsdepdagri,代码行数:31,代码来源:edithtmlblob.php

示例8: create_textarea

$smarty->assign('active_listcontent', $active_tab == 'listcontent' ? 1 : 0);
$smarty->assign('active_editcontent', $active_tab == 'editcontent' ? 1 : 0);
$smarty->assign('active_sitedown', $active_tab == 'sitedown' ? 1 : 0);
$smarty->assign('active_setup', $active_tab == 'setup' ? 1 : 0);
$smarty->assign('SECURE_PARAM_NAME', CMS_SECURE_PARAM_NAME);
$smarty->assign('CMS_USER_KEY', $_SESSION[CMS_USER_KEY]);
$smarty->assign('sitename', $sitename);
$smarty->assign('global_umask', $global_umask);
$smarty->assign('testresults', $testresults);
$smarty->assign('frontendlang', $frontendlang);
$smarty->assign('frontendwysiwyg', $frontendwysiwyg);
$smarty->assign('nogcbwysiwyg', $nogcbwysiwyg);
$smarty->assign('metadata', $metadata);
$smarty->assign('enablesitedownmessage', $enablesitedownmessage);
$smarty->assign('use_wysiwyg', $use_wysiwyg);
$smarty->assign('textarea_sitedownmessage', create_textarea($use_wysiwyg, $sitedownmessage, 'sitedownmessage', 'pagesmalltextarea'));
$smarty->assign('checkversion', $checkversion);
$smarty->assign('disablesafemodewarning', $disablesafemodewarning);
$smarty->assign('defaultdateformat', $defaultdateformat);
$smarty->assign('enablenotifications', $enablenotifications);
$smarty->assign('sitedownexcludes', $sitedownexcludes);
$smarty->assign('sitedownexcludeadmins', $sitedownexcludeadmins);
$smarty->assign('basic_attributes', explode(',', $basic_attributes));
$smarty->assign('disallowed_contenttypes', explode(',', $disallowed_contenttypes));
$smarty->assign('thumbnail_width', $thumbnail_width);
$smarty->assign('thumbnail_height', $thumbnail_height);
$smarty->assign('allow_browser_cache', $allow_browser_cache);
$smarty->assign('browser_cache_expiry', $browser_cache_expiry);
$smarty->assign('auto_clear_cache_age', $auto_clear_cache_age);
$smarty->assign('pseudocron_granularity', $pseudocron_granularity);
$smarty->assign('listcontent_showalias', $listcontent_showalias);
开发者ID:aldrymaulana,项目名称:cmsdepdagri,代码行数:31,代码来源:siteprefs.php

示例9: lang

    echo lang('name');
    ?>
:</p>
				<p class="pageinput"><input type="text" id="plugin_name" name="plugin_name" maxlength="255" value="<?php 
    echo $plugin_name;
    ?>
" /></p>
			</div>
			<div class="pageoverflow">
				<p class="pagetext">*<?php 
    echo lang('code');
    ?>
</p>
				<p class="pageinput">
				<?php 
    echo create_textarea(false, $code, 'code', 'pagebigtextarea', 'code', '', '', '80', '15', '', 'php');
    ?>
				
				</p>
			</div>
			<div class="pageoverflow">
				<p class="pagetext">&nbsp;</p>
				<p class="pageinput">
						<input type="hidden" name="userplugin_id" value="<?php 
    echo $userplugin_id;
    ?>
" />
						<input type="hidden" id="origpluginname" name="origpluginname" value="<?php 
    echo $orig_plugin_name;
    ?>
" />
开发者ID:rasomu,项目名称:chuza,代码行数:31,代码来源:edituserplugin.php

示例10: smarty_function_cge_textarea

 /**
  * A smarty plugin to provide a text area
  */
 public static function smarty_function_cge_textarea($params, $smarty)
 {
     $name = '';
     $wysiwyg = false;
     $syntax = false;
     $content = '';
     $class = '';
     $id = '';
     $rows = 10;
     $cols = 80;
     $required = false;
     if (isset($params['prefix'])) {
         $name = trim($params['prefix']);
     }
     if (isset($params['name'])) {
         $name .= trim($params['name']);
     }
     if (isset($params['wysiwyg'])) {
         $wysiwyg = cge_utils::to_bool(cge_utils::get_param($params, 'wysiwyg'));
     }
     if (isset($params['syntax'])) {
         $syntax = cge_utils::to_bool(cge_utils::get_param($params, 'syntax'));
     }
     if (isset($params['required'])) {
         $required = cge_utils::to_bool(cge_utils::get_param($params, 'required'));
     }
     if (isset($params['value'])) {
         $content = $params['value'];
     }
     if (isset($params['content'])) {
         $content = $params['content'];
     }
     if (isset($params['class'])) {
         $class = trim($params['class']);
     }
     if ($name == '') {
         return;
     }
     if ($wysiwyg) {
         $syntax = false;
     }
     // no syntax and wysiwyg at the same time.
     $id = trim(cge_utils::get_param($params, 'id', $id));
     $rows = (int) cge_utils::get_param($params, 'rows', $rows);
     $rows = max(1, $rows);
     $cols = (int) cge_utils::get_param($params, 'cols', $cols);
     $cols = max(1, $cols);
     $addtext = '';
     if (isset($params['required'])) {
         $required = cge_utils::to_bool($params['required']);
         if ($required && !$wysiwyg) {
             $addtext .= ' required';
         }
     }
     if ($ph = cge_utils::get_param($params, 'placeholder')) {
         $addtext .= ' placeholder="' . $ph . '"';
     }
     if ($maxlen = (int) cge_utils::get_param($params, 'maxlength')) {
         $addtext .= ' placeholder="' . $maxlen . '"';
     }
     $output = create_textarea($wysiwyg, $content, $name, $class, $id, '', '', $cols, $rows, '', $syntax, $addtext);
     if (isset($params['assign'])) {
         $smarty->assign(trim($params['assign']), $output);
         return;
     }
     return $output;
 }
开发者ID:rainbow-studio,项目名称:cmsms,代码行数:70,代码来源:class.cge_smarty_plugins.php

示例11: lang

				<p class="pagetext">*<?php 
    echo lang('code');
    ?>
</p>
				<div class="pageinput"><?php 
    echo create_textarea(false, $code, 'code', 'pagebigtextarea', 'code', '', '', '80', '15', '', 'php');
    ?>
</div>
			</div>
			<div class="pageoverflow">
				<p class="pagetext"><?php 
    echo lang('description');
    ?>
</p>
				<div class="pageinput"><?php 
    echo create_textarea(false, $description, 'description', 'pagebigtextarea', 'description', '', '', '80', '15');
    ?>
</div>
			</div>			
			
			<div class="pageoverflow">
				<p class="pagetext">&nbsp;</p>
				<div class="pageinput">
						<input type="hidden" name="userplugin_id" value="<?php 
    echo $userplugin_id;
    ?>
" />
						<input type="hidden" id="origpluginname" name="origpluginname" value="<?php 
    echo $orig_plugin_name;
    ?>
" />
开发者ID:RTR-ITF,项目名称:usse-cms,代码行数:31,代码来源:edituserplugin.php

示例12: DisplayAttributes

    public static function DisplayAttributes(&$content_obj, $one, $adding)
    {
        switch ($one) {
            case 'template':
                $templateops =& cmsms()->GetTemplateOperations();
                return array(lang('template') . ':', $templateops->TemplateDropdown('template_id', $content_obj->TemplateId(), 'onchange="document.Edit_Content.submit()"'));
            case 'pagemetadata':
                return array(lang('page_metadata') . ':', create_textarea(false, $content_obj->Metadata(), 'metadata', 'pagesmalltextarea', 'metadata', '', '', '80', '6'));
            case 'pagedata':
                return array(lang('pagedata_codeblock') . ':', create_textarea(false, $content_obj->GetPropertyValue('pagedata'), 'pagedata', 'pagesmalltextarea', 'pagedata', '', '', '80', '6'));
            case 'searchable':
                $searchable = $content_obj->GetPropertyValue('searchable');
                if ($searchable == '') {
                    $searchable = 1;
                }
                return array(lang('searchable') . ':', '<div class="hidden" ><input type="hidden" name="searchable" value="0" /></div>
					<input type="checkbox" name="searchable" value="1" ' . ($searchable == 1 ? 'checked="checked"' : '') . ' />');
            case 'disable_wysiwyg':
                $disableWysiwyg = $content_obj->GetPropertyValue('disable_wysiwyg');
                if ($disableWysiwyg == '') {
                    $disableWysiwyg = 0;
                }
                return array(lang('disable_wysiwyg') . ':', '<div class="hidden" ><input type="hidden" name="disable_wysiwyg" value="0" /></div>
					<input type="checkbox" name="disable_wysiwyg" value="1"  ' . ($disableWysiwyg == 1 ? 'checked="checked"' : '') . ' onclick="this.form.submit()" />');
            default:
                return false;
        }
    }
开发者ID:rainbow-studio,项目名称:cmsms,代码行数:28,代码来源:class.ac_admin_ops.php

示例13: CreateSyntaxArea

 /**
  * Returns the xhtml equivalent of a textarea.	Also takes Syntax hilighter preference
  * into consideration if it's called from the admin side.
  *
  * @param string The id given to the module on execution
  * @param string The text to display in the textarea's content
  * @param string The html name of the textarea
  * @param string The CSS class to associate this textarea to
  * @param string The html id to give to this textarea
  * @param string The encoding to use for the content
  * @param string The text of the stylesheet associated to this content.	 Only used for certain WYSIWYGs
  * @param string The number of characters wide (columns) the resulting textarea should be
  * @param string The number of characters high (rows) the resulting textarea should be
  * @param string Additional text for the text area tag.
  * @return string
  */
 function CreateSyntaxArea($id, $text, $name, $classname = '', $htmlid = '', $encoding = '', $stylesheet = '', $cols = '80', $rows = '15', $addtext = '')
 {
     return create_textarea(false, $text, $id . $name, $classname, $htmlid, $encoding, $stylesheet, $cols, $rows, '', 'html', $addtext);
 }
开发者ID:rainbow-studio,项目名称:cmsms,代码行数:20,代码来源:class.CMSModule.php

示例14: display_single_element

    function display_single_element($one, $adding)
    {
        switch ($one) {
            case 'template':
                $templateops =& cmsms()->GetTemplateOperations();
                return array(lang('template') . ':', $templateops->TemplateDropdown('template_id', $this->mTemplateId, 'onchange="document.Edit_Content.submit()"'));
            case 'pagemetadata':
                return array(lang('page_metadata') . ':', create_textarea(false, $this->mMetadata, 'metadata', 'pagesmalltextarea', 'metadata', '', '', '80', '6'));
            case 'pagedata':
                return array(lang('pagedata_codeblock') . ':', create_textarea(false, $this->GetPropertyValue('pagedata'), 'pagedata', 'pagesmalltextarea', 'pagedata', '', '', '80', '6'));
            case 'searchable':
                $searchable = $this->GetPropertyValue('searchable');
                if ($searchable == '') {
                    $searchable = 1;
                }
                return array(lang('searchable') . ':', '<div class="hidden" ><input type="hidden" name="searchable" value="0" /></div>
					<input type="checkbox" name="searchable" value="1" ' . ($searchable == 1 ? 'checked="checked"' : '') . ' />');
            case 'disable_wysiwyg':
                $disableWysiwyg = $this->GetPropertyValue('disable_wysiwyg');
                if ($disableWysiwyg == '') {
                    $disableWysiwyg = 0;
                }
                return array(lang('disable_wysiwyg') . ':', '<div class="hidden" ><input type="hidden" name="disable_wysiwyg" value="0" /></div>
					<input type="checkbox" name="disable_wysiwyg" value="1"  ' . ($disableWysiwyg == 1 ? 'checked="checked"' : '') . ' onclick="this.form.submit()" />');
            default:
                if (!in_array($one, $this->_advancedAttribs)) {
                    return parent::display_single_element($one, $adding);
                    # ToDo: here we can hook in to add MLE features for title and menutext etc.)
                }
                break;
        }
    }
开发者ID:aldrymaulana,项目名称:cmsdepdagri,代码行数:32,代码来源:contenttype.Content2.php

示例15: lang

    echo lang('name');
    ?>
:</p>
			<p class="pageinput"><input type="text" class="name" name="css_name" maxlength="255" value="<?php 
    echo $css_name;
    ?>
" /></p>
		</div>
		<div class="pageoverflow">
			<p class="pagetext">*<?php 
    echo lang('content');
    ?>
:</p>
			<p class="pageinput">
			<?php 
    echo create_textarea(false, $css_text, 'css_text', 'pagebigtextarea', 'css_text', '', '', '80', '15', '', 'css');
    ?>
			<!-- <textarea class="pagebigtextarea" name="css_text" cols="" rows=""><_?php echo $css_text?></textarea>  -->
			</p>
		</div>
		<div class="pageoverflow">
			<p class="pagetext"><?php 
    echo lang('mediatype');
    ?>
:</p>
			<div class="pageinput">
<?php 
    $existingtypes = array("all", "aural", "braille", "embossed", "handheld", "print", "projection", "screen", "tty", "tv");
    $types = "";
    $types .= "<fieldset style=\"width:60em;\">\n";
    $types .= "<legend>Media type</legend>\n";
开发者ID:aldrymaulana,项目名称:cmsdepdagri,代码行数:31,代码来源:addcss.php


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