public function render()
 {
     $metaTitle = $this->metatag != null ? $this->metatag->getMetaTitle() : '';
     $metaKeywords = $this->metatag != null ? $this->metatag->getMetaKeywords() : '';
     $metaDescription = $this->metatag != null ? $this->metatag->getMetaDescription() : '';
     return sprintf($this->skeleton, label_for('meta_title', __('Title:')), input_tag('w3s_meta_title', $metaTitle, 'size=34'), label_for('meta_meta_keywords', __('Keywords:')), textarea_tag('w3s_meta_keywords', $metaKeywords, 'size=31x10'), label_for('meta_meta_description', __('Description:')), textarea_tag('w3s_meta_description', $metaDescription, 'size=31x10'), link_to_function(__('Store metatags'), 'currentTab.save()', 'class="link_button"'));
 }
/**
 * Returns a textarea html tag.
 *
 * @param  object $object         An object.
 * @param  string $method         An object column.
 * @param  array  $options        Textarea options.
 * @param  string $default_value  Textarea default value.
 *
 * @return string An html string which represents a textarea tag.
 *
 */
function object_textarea_tag($object, $method, $options = array(), $default_value = null)
{
  $options = _parse_attributes($options);

  $value = _get_object_value($object, $method, $default_value);

  return textarea_tag(_convert_method_to_name($method, $options), $value, $options);
}
 public function getSlotEditor($slot)
 {
     $options = array('size' => '80x10', 'id' => 'edit_textarea' . $slot->getName(), 'tinymce_options' => sfConfig::get('app_sfSimpleCMS_tinymce_options', 'width: "100%"'));
     $script = '';
     if (sfConfig::get('app_sfSimpleCMS_rich_editing', false)) {
         sfLoader::loadHelpers(array('Javascript'));
         sfContext::getInstance()->getResponse()->addJavascript('/sfSimpleCMSPlugin/js/tiny_mce_AJAX.js', 'last');
         $script = javascript_tag('setTextareaToTinyMCE("edit_textarea' . $slot->getName() . '");');
         $options['rich'] = 'TinyMCE';
     }
     return $script . textarea_tag('slot_content', $slot->getValue(), $options);
 }
 function input($tag, $content, $data, $attributes)
 {
     $name = $attributes["name"];
     $valueKey = $attributes["value"];
     //(array_key_exists("value",$attributes)) ? $data->get($attributes["value"]) : "";
     $value = TemplateLogic::content($valueKey, $data);
     $options = Options::parse($attributes["options"]);
     $validate = array_key_exists("validate", $attributes) ? $attributes["validate"] : false;
     if ($validate) {
         if (array_key_exists("class", $options)) {
             $options["class"] = "validate(" . $validate . ") " . $options["class"];
         } else {
             $options["class"] = "validate(" . $validate . ")";
         }
     }
     //$attributes["validate"];
     //var_dump($validate);
     switch ($tag) {
         case "check":
             $checked = array_key_exists("checked", $attributes) && $value == TemplateLogic::content($attributes["checked"], $data);
             $result = check_tag($name, $value, $checked, $options);
             break;
         case "text":
             $result = textarea_tag($name, $value, $options);
             break;
         case "file":
             $result = filefield_tag($name, $options);
             break;
         case "field":
             $result = textfield_tag($name, $value, $options);
             break;
         case "radio":
             $checked = array_key_exists("checked", $attributes) && $value == TemplateLogic::content($attributes["checked"], $data);
             $result = radio_tag($name, $value, $checked, $options);
             break;
         case "pass":
             $result = password_tag($name, $value, $options);
             break;
         case "option":
             $selected = $data->get("selected") == $value;
             $result = option_tag($name, $value, $selected);
             break;
         case "hidden":
             $result = hidden_tag($name, $value, $options);
             break;
     }
     return $result;
 }
    <?php 
    }
    ?>
    
  <?php 
}
?>
  
  <?php 
echo form_error('body');
?>
  <?php 
echo label_for('body', __('Body', null, 'sfSimpleForum'));
?>
  <?php 
echo textarea_tag('body', '', 'id=topic_body');
?>
  
  <?php 
if (!isset($topic) && $sf_user->hasCredential('moderator')) {
    ?>
    <div class="option">
      <?php 
    echo checkbox_tag('is_sticked', '1');
    ?>
      <?php 
    echo label_for('is_sticked', __('Sticked topic', null, 'sfSimpleForum'));
    ?>
    </div>
    <div class="option">
      <?php 
        ?>
" alt="captcha" /></p>
    <?php 
    }
    ?>
    <p><?php 
    echo image_tag('star.png', array('alt' => '*'));
    ?>
&nbsp;&nbsp;i campi contrassegnati da asterisco sono obbligatori</p>

    <?php 
    echo form_error('text');
    ?>
    <p><label for="text">scrivi qui sotto il tuo commento</label><br/>      
      <?php 
    echo textarea_tag('text', $sf_request->hasErrors() ? $sf_params->get('text') : '', 'id=comment_text size=60x10');
    ?>
   
    </p>
    <p><?php 
    echo image_tag('arrow_mid.png', array('alt' => '&gt;', 'align' => 'absmiddle'));
    echo submit_tag('INVIA', array('class' => 'btn-submit'));
    ?>
</p>
  </form>


  <?php 
    if (sfConfig::get('app_comments_use_ajax', true)) {
        ?>
    <script type="text/javascript" language="javascript">
 public function getSlotEditor($slot)
 {
     return textarea_tag('slot_content', $slot->getValue(), 'size=80x10 id=edit_textarea' . $slot->getName());
 }
Exemple #8
0
    setcookie("redirection", "", time() - 3600, "/", sfConfig::get('app_cookies_domain'));
    $_COOKIE["redirection"] = "";
    ?>
 
       <?php 
} else {
    ?>

		<input name="thread_title" id="thread_title" value="" size="30" type="text" style="color:#000000"> 

	<?php 
}
?>
	<h1 class="info" style="font-size:16px; font-weight:normal; margin:25px 0 15px 0">Question Full Description:</h1>
          <?php 
echo textarea_tag('post_body', '', array('size' => '60x35', 'rich' => 'fck'));
?>
          </div>
        <!--content-info-->

      </div>
      <div class="spacer"></div>
      <div class="bottom"></div>
      <input type="submit" name="Post" class="question-post">

      <!--   <a class="question-post" href="#">post</a>-->
    </div>
    <div class="spacer"></div>
  </div>
  <div class="body-side">
    <div class="box">
 public static function renderFormFieldByType($f, $values)
 {
     $value = isset($values[$f['id']]) ? $values[$f['id']] : '';
     $attributes = array();
     switch ($f['type']) {
         case 'file':
             $html = '';
             if ($value > 0) {
                 if ($a = Doctrine_Core::getTable('Attachments')->find($value)) {
                     $html = '<br>' . Attachments::getLink($a) . input_hidden_tag('extra_fields_files[' . $f['id'] . ']', $value) . '<br>' . input_checkbox_tag('extra_fields_files_delete[' . $f['id'] . ']', $value) . ' <label for="extra_fields_files_delete_' . $f['id'] . '">' . __('Delete') . '</label>';
                     $attributes['class'] = '';
                 }
             }
             return input_file_tag('extra_fields[' . $f['id'] . ']', '', $attributes) . $html;
             break;
         case 'number':
             return input_tag('extra_fields[' . $f['id'] . ']', $value, $attributes);
             break;
         case 'text':
         case 'url':
             $attributes['size'] = '40';
             return input_tag('extra_fields[' . $f['id'] . ']', $value, $attributes);
             break;
         case 'textarea':
             return textarea_tag('extra_fields[' . $f['id'] . ']', $value, $attributes);
             break;
         case 'textarea_wysiwyg':
             if (isset($attributes['class'])) {
                 $attributes['class'] .= ' editor';
             } else {
                 $attributes['class'] = 'editor';
             }
             return textarea_tag('extra_fields[' . $f['id'] . ']', $value, $attributes);
             break;
         case 'date':
             if (isset($attributes['class'])) {
                 $attributes['class'] .= ' datepicker';
             } else {
                 $attributes['class'] = 'datepicker';
             }
             $attributes['size'] = '11';
             return input_tag('extra_fields[' . $f['id'] . ']', $value, $attributes);
             break;
         case 'date_range':
             if (isset($attributes['class'])) {
                 $attributes['class'] .= ' datepicker';
             } else {
                 $attributes['class'] = 'datepicker';
             }
             $attributes['size'] = '11';
             if (strlen($value) > 0) {
                 $value = explode('|', $value);
             } else {
                 $value = array('', '');
             }
             return __('From') . ': ' . input_tag('extra_fields[' . $f['id'] . '][from]', $value[0], $attributes) . ' ' . __('To') . ': ' . input_tag('extra_fields[' . $f['id'] . '][to]', $value[1], $attributes);
             break;
         case 'date_time':
             if (isset($attributes['class'])) {
                 $attributes['class'] .= ' datetimepicker';
             } else {
                 $attributes['class'] = 'datetimepicker';
             }
             $attributes['size'] = '17';
             return input_tag('extra_fields[' . $f['id'] . ']', $value, $attributes);
             break;
         case 'date_dropdown':
             $years = range(date('Y') - 100, date('Y') + 20);
             $w = new sfWidgetFormDate(array('years' => array_combine($years, $years), 'format' => __('Year') . ':%year% ' . __('Month') . ':%month% ' . __('Day') . ':%day%'));
             return $w->render('extra_fields[' . $f['id'] . ']', $value, $attributes);
             break;
         case 'pull_down':
             $choices = array();
             foreach (explode("\n", $f['default_values']) as $v) {
                 $choices[trim($v)] = trim($v);
             }
             return select_tag('extra_fields[' . $f['id'] . ']', $value, array('choices' => $choices), $attributes);
             break;
         case 'checkbox':
             $choices = array();
             foreach (explode("\n", $f['default_values']) as $v) {
                 $choices[trim($v)] = trim($v);
             }
             return '<div id="checkboxesList' . $f['id'] . '" class="checkboxesList">' . select_tag('extra_fields[' . $f['id'] . ']', explode("\n", $value), array('choices' => $choices, 'expanded' => true, 'multiple' => true), $attributes) . '</div>';
             break;
         case 'radiobox':
             $choices = array();
             foreach (explode("\n", $f['default_values']) as $v) {
                 $choices[trim($v)] = trim($v);
             }
             return select_tag('extra_fields[' . $f['id'] . ']', $value, array('choices' => $choices, 'expanded' => true), $attributes);
             break;
     }
 }
$t->like(textarea_tag('name[]', 'content', array('rich' => true, 'id' => 'test')), '/elements: "test",/', 'textarea_tag() can create a rich textarea tag based on tinyMCE using correct id');
class sfRichTextEditorSample extends sfRichTextEditor
{
    public function toHTML()
    {
        return 'fake editor';
    }
}
$t->like(textarea_tag('name', 'content', array('rich' => 'Sample')), '/fake editor/', 'textarea_tag() can create a rich textarea tag based on a custom editor');
sfConfig::set('sf_rich_text_editor_class', 'Sample');
$t->like(textarea_tag('name', 'content', array('rich' => true)), '/fake editor/', 'textarea_tag() can be configured to change the default editor by configuration');
class sfRichTextEditorSampleBis
{
}
try {
    textarea_tag('name', 'content', array('rich' => 'SampleBis'));
    $t->fail('textarea_tag() custom editor must extends sfRichTextEditor');
} catch (sfConfigurationException $e) {
    $t->pass('textarea_tag() custom editor must extends sfRichTextEditor');
}
// checkbox_tag()
$t->diag('checkbox_tag()');
$t->is(checkbox_tag('name'), '<input type="checkbox" name="name" id="name" value="1" />', 'checkbox_tag() takes a name as its first argument');
$t->is(checkbox_tag('name', 'foo'), '<input type="checkbox" name="name" id="name" value="foo" />', 'checkbox_tag() takes a value as its second argument');
$t->is(checkbox_tag('name', null, true), '<input type="checkbox" name="name" id="name" value="" checked="checked" />', 'checkbox_tag() takes a boolean as its third argument');
// options
$t->is(checkbox_tag('name', null, false, array('class' => 'foo')), '<input type="checkbox" name="name" id="name" value="" class="foo" />', 'checkbox_tag() takes an array of attribute options as its fourth argument');
$t->is(checkbox_tag('name', null, false, array('id' => 'foo')), '<input type="checkbox" name="name" id="foo" value="" />', 'checkbox_tag() can override the "id" attribute');
// radiobutton_tag()
$t->diag('radiobutton_tag()');
$t->is(radiobutton_tag('name', 1), '<input type="radio" name="name" id="name_1" value="1" />', 'radiobutton_tag() takes a name as its first argument');
        ?>
 form-error<?php 
    }
    ?>
">
    <?php 
    if ($sf_request->hasError('parametro{cadena1}')) {
        ?>
      <?php 
        echo form_error('parametro{cadena1}', array('class' => 'form-error-msg'));
        ?>
    <?php 
    }
    ?>
    <?php 
    $value = textarea_tag('parametro[cadena1]', $parametro->getCadena1(), array('size' => "30x3"));
    echo $value ? $value : '&nbsp;';
    ?>
  </div>
</div>
<?php 
}
?>

<?php 
// ###### FICHERO #######################################################
if ($parametro_def->getCampoFichero() != "") {
    ?>
<div class="form-row">
  <?php 
    echo label_for('parametro[fichero]', $parametro_def->getCampoFichero(), 'class="" ');
Exemple #12
0
  <?php 
            echo $name;
            ?>
  <br />
<?php 
        }
        ?>

<br />

Enter any additional names below, one per line, that weren't identified from the page:

<br />
<br />
<?php 
        echo textarea_tag('manual_names', $sf_request->getParameter('manual_names'), 'size=60x8');
        ?>
<br />
<br />






<!-- ADD RELATIONSHIPS  -->


<?php 
    } else {
        ?>
Exemple #13
0
if ($sf_request->hasError('regarding')) {
    echo '<span class="form-error">' . $sf_request->getError('regarding') . '</span>';
}
?>
<br />
      <?php 
echo label_for('regarding', 'What area would you like us to help with?'), input_tag('regarding', '', array());
?>
      <?php 
if ($sf_request->hasError('details')) {
    echo '<span class="form-error">' . $sf_request->getError('details') . '</span>';
}
?>
<br />
      <?php 
echo label_for('details', 'Describe your question in depth'), textarea_tag('details');
?>
      
      <?php 
if ($sf_request->hasError('party')) {
    echo '<span class="form-error">' . $sf_request->getError('party') . '</span>';
}
?>
<br />
      <?php 
echo label_for('party', 'Who would you like to give you assistance?'), select_tag('party', options_for_select(array(sfConfig::get('app_project_application_advice_public') => 'The Cothink community (Public, access to huge group of experts)', sfConfig::get('app_project_application_advice_cothink') => 'Cothink staff (highly confidential, takes longer)'), sfConfig::get('app_project_application_advice_public')));
?>
      
      <?php 
echo submit_tag('Submit for community help', array());
?>
Exemple #14
0
function backend_textarea($name, $input = null, $options = array(), $methode = null)
{
    $code = getDivLabel($options, $name);
    $isAdmin = 0;
    $user = sfContext::getInstance()->getUser()->getSubscriber();
    if ($user && $user->getType() == 'admin') {
        $isAdmin = 1;
    }
    if ($options['richtext']) {
        $options['id'] = 'richtext_' . $name;
        $options['onclick'] = 'selectElement(this, ' . $isAdmin . '); ' . $options['onclick'];
    }
    if ($options['validate']) {
        $errSpan = "<span id='" . $name . "Error'></span>";
    }
    $code .= textarea_tag($name, getVal($input, $methode, $name), clearOptions($options));
    $code .= $errSpan;
    return $code;
}
Exemple #15
0
            echo checkbox_tag('network_ids[]', $network['id'], $isChecked);
            ?>
    <?php 
            echo $network['name'];
            ?>
    <br />
  <?php 
        }
        ?>
  <br />
<?php 
    }
    ?>

<?php 
    echo textarea_tag('note[body]', $sf_request->getParameter('note[body]', $initialValue), 'id=note-body');
    ?>

<?php 
    echo submit_tag('Post');
    ?>
&nbsp;&nbsp;

<?php 
    echo checkbox_tag('note[is_private]', true, isset($private) && $private);
    ?>
 Private 
&nbsp;<span class="form_help">(private notes can only be seen by you and alerted analysts)</span>

</div>
      <?php 
        } else {
            ?>
        <p><?php 
            echo __('You are authenticated. Your username will be stored : %username%.', array('%username%' => '<strong>' . $userName . '</strong>'));
            ?>
</p>
      <?php 
        }
        ?>
    <?php 
    }
    ?>

    <?php 
    echo textarea_tag('content', $revision->getContent(true), 'size=80x20' . ($canEdit ? '' : ' readonly=yes'));
    ?>

    <?php 
    if ($canEdit) {
        ?>

      <p><?php 
        echo label_for('comment', __('Comment'));
        ?>
 <?php 
        echo input_tag('comment', $page->isNew() ? 'Creation' : ($sf_request->getParameter('request-preview') ? $revision->getComment() : ''), 'size=80');
        ?>
</p>

      <p>
Exemple #17
0
function text_tag(moojon_base_model $model, moojon_base_column $column, $attributes = array())
{
    $attributes = try_set_name_and_id_attributes($attributes, $model, $column);
    $attributes['cols'] = 40;
    $attributes['rows'] = 6;
    $attributes['class'] = 'textarea';
    return textarea_tag($column->get_value(), $attributes);
}
Exemple #18
0
                <tr><td><button class="BOTO_ACTIVITAT" name="BDESVINCULA">DESVINCULA</button></td>
                    <td><button class="BOTO_ACTIVITAT" name="BVINCULA">VINCULA</button></td></tr>
            </table>                            	                  
        </DIV>


	    <DIV class="REQUADRE">
            <table width="100%">
                <?php 
    include_partial('missatgeTaula', array('MISS' => $MISSATGE, 'colspan' => '1'));
    ?>
                <tr>
                    <td style="vertical-align:top;">
                        <b>Emails lliures subscrits</b><br /><br />
                        <?php 
    echo textarea_tag('EMAILS', $EMAILS, array('style' => 'height: 200px'));
    ?>
                    </td>                    
                </tr>
                <tr><td><button class="BOTO_ACTIVITAT" name="BACTUALITZAEMAILS">ACTUALITZA</button></td><tr>                    
            </table>                            	                  
        </DIV>

      
       </form>

  <?php 
}
?>
      
  <?php 
Exemple #19
0
    <td><?php 
echo __('Subject');
?>
</td>
    <td><?php 
echo input_tag('subject', $sf_request->getParameter('subject'), array('size' => 60, 'class' => 'required'));
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo __('Message');
?>
</td>
    <td><?php 
echo textarea_tag('message', $sf_request->getParameter('message'), array('class' => 'editor'));
?>
</td>
  </tr>
</table>
<br>
<?php 
echo submit_tag(__('Send Message'));
?>
<form>

<?php 
include_partial('global/formValidator', array('form_id' => 'send'));
?>

<script type="text/javascript">    
Exemple #20
0
    <div class="qa">
      <div class="tb">
        <h1>Description</h1>
        <div class="clear"></div>
        <div class="sep"></div>
      </div>
      <!--tb-->
      <div class="answer_submit">

        <?php 
$content = $post->getContent();
?>


        <?php 
echo textarea_tag('post_edit_content', $content, array('size' => '60x30', 'rich' => 'fck'));
?>
 </div>
      <!--bg-->
      <div class="b"></div>
    </div>
    <!--qa-->

    <!--     <a class="publish_response" href="#">Publish response</a>-->

    <input type="submit" name="Post" class="publish_response">
      </form>
  </div>


Exemple #21
0
        echo textarea_tag('order_note', null, array('cols' => 40, 'rows' => 6));
    }
    ?>
			</td>
		</tr>
		<?php 
    if ($member_id) {
        ?>
		<tr>
			<td colspan=2>
				<label><?php 
        echo __('ReturnNote');
        ?>
</label>
				<br/>
				<?php 
        echo textarea_tag('return_note', null, array('cols' => 40, 'rows' => 6));
        ?>
			</td>
		</tr>
		<?php 
    }
    ?>
	</tbody>
	</table>
</td></tr>
</table>

</form>
<?php 
}
Exemple #22
0
    <td><?php 
echo input_tag('cfg[app_new_user_email_subject]', sfConfig::get('app_new_user_email_subject'), array('size' => '60'));
?>
    <br>
    <?php 
echo '<b>' . __('Default') . ':</b> ' . __('Your account has been created in') . ' ' . sfConfig::get('app_app_name');
?>
    </td>
  </tr>
  <tr>
    <th><label for="cfg_app_new_user_email_body"><?php 
echo __('Body');
?>
</label></th>
    <td><?php 
echo textarea_tag('cfg[app_new_user_email_body]', sfConfig::get('app_new_user_email_body'), array('class' => 'editor'));
?>
    
    <?php 
echo '<b>' . __('Note') . ':</b> ' . __('by default login details will be added at the end message');
?>
    <table>
      <tr>
        <td><?php 
echo __('Use Keys');
?>
:</td>
        <td>
          [user_name] - <?php 
echo __('to include User Name');
?>
Exemple #23
0
        echo input_tag($name, $cs_setting->getValue(), 'size=55');
        break;
    case 'textarea':
        echo textarea_tag($name, $cs_setting->getValue());
        break;
    case 'yesno':
        echo 'Yes: ' . radiobutton_tag($name, 1, $cs_setting->getValue());
        echo 'No: ' . radiobutton_tag($name, 0, $cs_setting->getValue() ? false : true);
        break;
    case 'select':
        $options = _parse_attributes($cs_setting->getOptions());
        echo select_tag($name, options_for_select($options, $cs_setting->getValue(), 'include_blank=true'));
        break;
    case 'model':
        $config = _parse_attributes($cs_setting->getOptions());
        $method = $cs_setting->getOption('table_method');
        $method = $method ? $method : 'findAll';
        $options = Doctrine::getTable($cs_setting->getOption('model', true))->{$method}();
        echo select_tag($name, objects_for_select($options, 'getId', '__toString', $cs_setting->getValue()), 'include_blank=true');
        break;
    case 'wysiwyg':
        echo textarea_tag($name, $cs_setting->getvalue(), 'rich=true ' . $cs_setting->getOptions());
        break;
    case 'upload':
        echo $cs_setting->getValue() ? link_to($cs_setting->getValue(), public_path('uploads/setting/' . $cs_setting->getValue())) . '<br />' : '';
        echo input_file_tag($name, $cs_setting->getValue(), $cs_setting->getOptions());
        break;
    default:
        echo input_tag($name, $cs_setting->getValue(), 'size=55');
        break;
}
Exemple #24
0
echo input_tag('title', $duty_place->getTitle(), 'size=38');
?>
	<script type="text/javascript">
	var title = new LiveValidation('title', { validMessage: "<?php 
echo Constant::VALIDATION_SUCCESS;
?>
"});
	title.add( Validate.Presence,{ failureMessage: "<?php 
echo Constant::VALIDATION_REQUIRED_FIELD;
?>
"});
	</script>
	<tr height="30">
	<td valign="top">Description:</td>
	<td><?php 
echo textarea_tag('description', $duty_place->getDescription(), 'size=30x4');
?>
</td>
	
</tr>
	</td>
  </tr>
 
 
 <tr>
		<td>&nbsp;</td>
		<td colspan="2">
		<table width="100%" align="left" border="0">
			<tr>
				<td width="2%"><?php 
echo submit_tag(' ', array('class' => 'btn_update', 'style' => 'border:none'));
				$('raw_body').style.position='';
				$('raw_body').style.top='';
				$('raw_body').style.left='';	
			}
		}
	//-->
	</script>
	<?php 
echo __('Double click to textarea in order to maximize/minimize.');
?>
    <div class="row">
        <?php 
echo label_for('raw_body', __('Body') . required());
?>
        <?php 
echo textarea_tag('raw_body', $sf_params->get('raw_body'), array('class' => 'body', 'ondblclick' => 'change_size();'));
?>
        <?php 
echo link_to(image_tag('help.png', array('alt' => __('Markdown Syntax'), 'title' => __('Markdown Syntax'))), 'site/popup?content=markdown', array('popup' => array(__('Markdown Syntax'), 'width=600, height=500, resizable, scrollbars=yes')));
?>
        <?php 
echo form_error('raw_body');
?>
    </div>
    <div class="row">
        <?php 
echo label_for('tags', __('Tags'));
?>
        <?php 
echo input_auto_complete_tag('tags', $sf_params->get('tags'), 'tag/autocomplete', array('autocomplete' => 'off'), array('use_style' => 'true', 'tokens' => ','));
?>
Exemple #26
0
 public static function textarea($nombre, $valor = "")
 {
     $params = is_array($nombre) ? $nombre : Util::getParams(func_get_args());
     $params["name"] = $nombre;
     $params["id"] = $nombre;
     $params[1] = $valor;
     return textarea_tag($params);
 }
      <div>
        <?php 
    echo form_remote_tag(array('update' => 'edit-tasks-holder', 'url' => 'project/ajaxAddTask'));
    ?>
          <div id="task-details" class="float-left" style="vertical-align:top;">
            <?php 
    echo input_hidden_tag('project', $project->getUuid(), array());
    ?>
            <?php 
    echo input_tag('task_name', 'Task Name');
    ?>
            <?php 
    echo textarea_tag('task_description', 'Task Description', array('rows' => '3'));
    ?>
            <?php 
    echo textarea_tag('task_tags', '', array('rows' => '3'));
    ?>
          </div>
          <div id="task-dates" class="float-right" style="text-align:right;">
            <label for="task_begin">Task Starts: <?php 
    echo input_date_tag('task_begin', '', array('rich' => 'true'));
    ?>
</label><br />
            <label for="task_finish">Task Due: <?php 
    echo input_date_tag('task_finish', '', array('rich' => 'true'));
    ?>
<br />
            <?php 
    echo submit_tag('Add Task');
    ?>
          </div>
Exemple #28
0
//else:
?>
    <?php 
echo form_tag('post/create', array('method' => 'post', 'id' => 'add_post', 'enctype' => 'multipart/form-data', 'onkeypress' => "ctrlEnter(event, this);", 'onsubmit' => '$j("#submit").attr("disabled", true);'));
?>
    <?php 
echo input_hidden_tag('noajax', isset($noajax) ? $noajax : false);
//endif
?>
    <div>
	<b><label for="text"><?php 
echo __('Как дела? Что новенького?');
?>
</label></b><br/>
	<?php 
echo textarea_tag('text', $tag, array('rows' => 3, 'cols' => 76));
?>
<br/>
	<div>
            <label for="mood"><?php 
echo __('Настроение');
?>
:</label>
            <div class='mood'>
                <?php 
echo radiobutton_tag('mood', 'good', false, array('class' => 'styled_good'));
?>
                <?php 
echo radiobutton_tag('mood', 'normal', true, array('class' => 'styled_normal'));
?>
                <?php 

<?php 
if ($DefParametro->getCampoCadena1() != "") {
    $vals = explode("##", $DefParametro->getCampoCadena1());
    if (!isset($vals[1])) {
        $vals[1] = 0;
    }
    ?>
<div class="form-row">
	<?php 
    echo label_for('cadena1', __($vals[0]));
    ?>
	<div class="row-data">
	<?php 
    echo textarea_tag('cadena1', $parametro->getCadena1(), array('size' => '80x15', 'rich' => $vals[1] == 1));
    ?>
  </div>
</div>
<?php 
    if ($vals[1] == 1) {
        ?>
<script language="Javascript">tinyMCE.idCounter = 0; tinyMCE.execCommand( 'mceAddControl', true, "cadena1");</script>
<?php 
    }
}
?>


<?php 
if ($DefParametro->getCampoCadenaMultiIdioma() != "") {
    ?>
	<?php 
    include_partial('result', array('tree' => $tree));
}
?>

<p>This is an alpha-release of a utility that converts pseudo-SQL into PHP Propel code. Give it a try &mdash; feedback is
welcome on the <a href="http://www.symfony-project.org/forum/index.php/m/32692/">symfony forum</a>!</p>
<fieldset>
<legend>Enter pseudo-sql</legend>
<p>Columns must be in the form table.field and strings must be in single quotes. Supported comparison operators are =, &lt;&gt;, !=, &lt;, &gt;, &lt;= and &gt;=. Also allowed are LIKE, NOT LIKE, IN, NOT IN, IS NULL and IS NOT NULL. In strings, the apostrophe character can be escaped with the use of a backslash.
Brackets  to any depth are fine, and clauses can be joined with AND and OR. No subclause may contain both
AND and OR - use brackets to indicate precedence.</p>
<?php 
echo form_tag('criteria/analyse');
echo textarea_tag('logic', $input, 'size=90x8 class=formSpace');
?>
<div class="formSpace">
  <div><?php 
echo checkbox_tag('code_comments', 'yes', true);
?>
 Generate code comments</div>
  <div><?php 
echo checkbox_tag('demo_loop', 'yes', true);
?>
 Include skeleton iteration loop</div>
  <div><?php 
echo checkbox_tag('show_tree', 'yes', false);
?>
 Show parse tree</div>
  <div>