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"'));
 }
Example #2
0
function op_smt_diary_get_post_image_form($diaryImages)
{
    $html = array();
    if (!sfConfig::get('app_diary_is_upload_images')) {
        return $html;
    }
    $html[] = '<table class="file_list">';
    $max = sfConfig::get('app_diary_max_image_file_num', 3);
    for ($i = 1; $i <= $max; $i++) {
        $tagName = 'diary_photo_' . $i;
        $html[] = '<tr>';
        $label = label_for(__('Photo') . $i, $tagName);
        $html[] = content_tag('td', $label, array('class' => 'file_label'));
        $html[] = '<td>';
        if (isset($diaryImages[$i])) {
            $diaryImage = op_api_diary_image($diaryImages[$i], '48x48');
            $html[] = content_tag('p', link_to($diaryImage['imagetag'], $diaryImage['filename'], array('rel' => 'lightbox[image]')));
            $html[] = content_tag('input', '', array('type' => 'checkbox', 'name' => $tagName . '_photo_delete', 'id' => $tagName . '_photo_delete'));
            $html[] = label_for('&nbsp;' . __('remove the current photo'), $tagName . '_photo_delete');
        }
        $attr = array('type' => 'file', 'name' => $tagName, 'id' => $tagName);
        $html[] = content_tag('input', '', $attr);
        $html[] = '</td></tr>';
    }
    $html[] = '</table>';
    return $html;
}
Example #3
0
function _wpo_edit_cat_row($category, $level, &$data)
{
    $category = get_category($category);
    $name = $category->cat_name;
    echo '
	<li class="required pad' . $level . '">
    ' . checkbox_tag('campaign_categories[]', $category->cat_ID, in_array($category->cat_ID, $data['categories']), 'id=category_' . $category->cat_ID) . '
    ' . label_for('category_' . $category->cat_ID, $name) . '</li>';
}
Example #4
0
function sf_simple_cms_slot($page, $slot, $default_text = null, $default_type = 'Text')
{
    $context = sfContext::getInstance();
    $request = $context->getRequest();
    $culture = $request->getAttribute('culture');
    $slot_object = $page->getSlot($slot, constant(sfConfig::get('app_sfSimpleCMS_escaping_strategy', 'ESC_RAW')));
    if (!$slot_object) {
        $slot_object = new sfSimpleCMSSlot();
        $slot_object->setType($default_type);
        $slot_object->setCulture($culture);
    }
    $slot_value = $slot_object->getValue();
    $slot_type_name = $slot_object->getType();
    $slot_type_class = 'sfSimpleCMSSlot' . $slot_type_name;
    $slot_type = new $slot_type_class();
    if ($request->getParameter('edit') == 'true' && !$request->getParameter('preview')) {
        echo '<div class="editable_slot" title="' . __('Double-click to edit') . '" id="slot_' . $slot . '" onDblClick="Element.show(\'edit_' . $slot . '\');Element.hide(\'slot_' . $slot . '\');">';
        if ($slot_value) {
            // Get slot value from the slot type object
            echo $slot_type->getSlotValue($slot_object);
        } else {
            // default text
            echo $default_text ? $default_text : sfConfig::get('app_sfSimpleCMS_default_text', __('[add text here]'));
        }
        echo '</div>';
        echo form_remote_tag(array('url' => 'sfSimpleCMS/updateSlot', 'script' => 'true', 'update' => 'slot_' . $slot, 'success' => 'Element.show(\'slot_' . $slot . '\');
                        Element.hide(\'edit_' . $slot . '\');
                       ' . visual_effect('highlight', 'slot_' . $slot)), array('class' => 'edit_slot', 'id' => 'edit_' . $slot, 'style' => 'display:none'));
        echo input_hidden_tag('slug', $page->getSlug(), 'id=edit_path' . $slot);
        echo input_hidden_tag('slot', $slot);
        if (sfConfig::get('app_sfSimpleCMS_use_l10n', false)) {
            echo input_hidden_tag('sf_culture', $slot_object->getCulture());
        }
        // Get slot editor from the slot type object
        echo $slot_type->getSlotEditor($slot_object);
        echo label_for('slot_type', __('Type: '));
        echo select_tag('slot_type', options_for_select(sfConfig::get('app_sfSimpleCMS_slot_types', array('Text' => __('Simple Text'), 'RichText' => __('Rich text'), 'Php' => __('PHP code'), 'Image' => __('Image'), 'Modular' => __('List of partials/components'))), $slot_type_name));
        if ($rich = sfConfig::get('app_sfSimpleCMS_rich_editing', false)) {
            // activate rich text if global rich_editing is true and is the current slot is RichText
            $rich = $slot_type_name == 'RichText';
        }
        echo submit_tag('update', array('onclick' => $rich ? 'tinymceDeactivate()' . ';submitForm(\'edit_' . $slot . '\'); return false' : '', 'class' => 'submit_tag'));
        echo button_to_function('cancel', 'Element.hide(\'edit_' . $slot . '\');Element.show(\'slot_' . $slot . '\');', 'class=submit_tag');
        echo '</form>';
    } else {
        echo $slot_type->getSlotValue($slot_object);
    }
}
 /**
  * Renders the editor
  * 
  * @return string
  *
  */
 public function render()
 {
     $idLanguage = 0;
     $isMain = 0;
     $languageName = '';
     if ($this->language != null) {
         $idLanguage = $this->language->getId();
         $isMain = $this->language->getMainLanguage();
         $languageName = $this->language->getLanguage();
     }
     $setEnabled = $idLanguage == 0 || $idLanguage != 0 && $isMain == 0 ? '' : 'DISABLED';
     $function = $idLanguage == 0 ? link_to_function(__('Add Language'), 'W3sLanguage.add()', 'class="link_button"') : link_to_function(__('Edit Language'), 'W3sLanguage.edit()', 'class="link_button"');
     $additionalInfo = $idLanguage == 0 ? '<div id="w3s_message"><p class="error_message">' . __('PAY ATTENTION: This operation will also insert all contents for the new language. These contents will be copied from the main language of your website.') . '</p></div>' : '';
     $checked = $isMain == 1 ? 'CHECKED' : '';
     return sprintf($this->editorSkeleton, label_for('language_name', __('Language name:')), input_tag('w3s_language_name', $languageName), label_for('main_language', __('Main language:')), sprintf('<input name="w3s_main_language" id="w3s_main_language" %s type="checkbox" %s />', $setEnabled, $checked), $function, $additionalInfo);
 }
Example #6
0
// auto-generated by sfPropelCrud
// date: 2008/04/04 15:24:10
use_helper('I18N', 'Javascript', 'Form', 'Object');
?>

<div id="member-search" style="padding-bottom: 10px;">
  <div class="blue-shadow"><div class="blue-title blue-content">Search for a member</div></div>
  <div class="blue-shadow">
    <div class="blue-content">
      <?php 
echo form_remote_tag(array('update' => 'pager-holder', 'url' => 'user/ajaxUserPager', 'loading' => "Element.show('form-search-indicator')", 'complete' => "Element.hide('form-search-indicator');" . visual_effect('highlight', 'pager-holder')));
?>
        <fieldset id='ajax_filter_fieldset' style="border: medium none;">
            <span>
              <?php 
echo label_for('user_name', 'Name'), input_auto_complete_tag('user_name', '', 'user/autoMessageComplete?field=name', 'autocomplete=false', 'use_style=true');
?>
            </span>
            <?php 
/*
            <span>
            <label for="campus">campus: <?php echo select_tag('user_campus', objects_for_select(CampusPeer::doSelect(new Criteria()), 'getId', 'getName', '', array('include_blank'=>true)), array('class'=>'xxx')) ?></label>
            <label for="department">department: <?php echo select_tag('user_department', objects_for_select(DepartmentPeer::doSelect(new Criteria()), 'getId', 'getName', '', array('include_blank'=>true)), array('class'=>'xxx')) ?></label>
            </span>
*/
?>
            <span id="update_button">
              <?php 
echo submit_tag('Search', array());
?>
            </span>
Example #7
0
<div class="sf_admin_filters">
<!--
<?php 
echo form_tag('tablas/list', array('method' => 'get'));
?>

  <fieldset>
    <h2><?php 
echo __('filters');
?>
</h2>
     <div class="form-row">
    <?php 
echo label_for('filters[id_empresa]', __('empresa'), '');
?>
    <div class="content">
    <?php 
$id_empresa = isset($filters['id_empresa']) ? $filters['id_empresa'] : null;
$c = EmpresaPeer::getCriterioAlcance();
$empresas = EmpresaPeer::doSelect($c);
$value = select_empresas('filters[id_empresa]', objects_for_select($empresas, 'getIdEmpresa', '__toString', $id_empresa, array('include_blank' => true)), array('control_name' => 'filters[id_empresa]', 'include_blank' => true));
echo $value ? $value : "&nbsp;";
?>
    </div>
    </div>
   
    
    
  </fieldset>

  <ul class="sf_admin_actions">
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 
    echo checkbox_tag('is_locked', '1');
    ?>
      <?php 
    echo label_for('is_locked', __('Locked topic', null, 'sfSimpleForum'));
    ?>
    </div>
  <?php 
}
?>
  
  <?php 
echo submit_tag(__('Post', null, 'sfSimpleForum'), 'id=topic_submit');
?>
  
</form>
?>
    <div class="form-row">
    <?php 
echo fieldset_tag('Manage your private data');
?>
    <ul>
      <li><?php 
echo label_for('edit_topo_name', __('topoName_desc'), array('class' => 'fieldname', 'id' => '_topo_name')) . ' ' . input_tag('edit_topo_name', $user_private_data->get('topo_name'), array('class' => 'medium_input'));
?>
</li>
      <li><?php 
echo label_for('edit_nickname', __('nickName_desc'), array('class' => 'fieldname', 'id' => '_nick_name')) . ' ' . input_tag('edit_nickname', $user_private_data->get('username'), array('class' => 'medium_input'));
?>
</li>
      <li><?php 
echo label_for('login_name', __('LoginName_desc'), array('class' => 'fieldname', 'id' => '_login_name')) . '<strong>' . $user_private_data->getLoginName() . '</strong>';
?>
</li>
    </ul>
    <?php 
echo end_fieldset_tag();
echo fieldset_tag('Manage your profile page');
echo object_group_tag($user_private_data, 'is_profile_public', array('callback' => 'object_checkbox_tag'));
echo end_fieldset_tag();
?>
    
    <ul class="action_buttons">
      <li><?php 
echo c2c_submit_tag(__('Save'), array('picto' => 'action_create'));
?>
</li>
    </div>
    <?php 
}
?>
    <?php 
if (!$sf_params->get('id')) {
    ?>
    <div class="row right_col">
        <?php 
    echo cryptographp_picture();
    echo cryptographp_reload();
    ?>
    </div>
    <div class="row">
        <?php 
    echo label_for('captcha', __('Type the code shown') . required());
    ?>
        <?php 
    echo input_tag('captcha', $sf_params->get('captcha'));
    ?>
        <?php 
    echo form_error('captcha');
    ?>
    </div>
    <?php 
}
?>
    <div class="row right_col">
        <?php 
echo submit_tag(__('Save'));
?>
<fieldset id="sf_fieldset_preferencias" class="">
<h2><?php 
echo __('Preferencias');
?>
</h2>

<div class="form-row">
  <?php 
echo label_for('usuario[id_idioma]', __($labels['usuario{id_idioma}']), 'class="required" ');
?>
  <div class="content">

  <?php 
$value = $usuario->getIdioma();
echo $value ? $value : '&nbsp;';
?>
    </div>
</div>



</fieldset>



 /**
  * Renders the images editor
  * 
  * @return string
  *
  */
 public function render()
 {
     return sprintf($this->editorSkeleton, label_for('page_name', __('Page name:')), input_tag('w3s_page_name', ''), label_for('group_name', __('Group name:')), select_tag('w3s_groups_select', objects_for_select(W3sGroupPeer::getActiveGroups(), 'getId', 'getGroupName')), link_to_function(__('Add Page'), 'W3sPage.add()', 'class="link_button"'));
 }
Example #13
0
?>
  </div>
</div>

</fieldset>


<fieldset id="sf_fieldset_usuario_grupos" class="">
<h2><?php 
echo __('Lista de destinatarios');
?>
</h2>

<div class="form-row">
  <?php 
echo label_for('mensaje[destinatarios]', __($labels['mensaje{destinatarios}']) . ":", '');
?>
  <div class="content<?php 
if ($sf_request->hasError('mensaje{destinatarios}')) {
    ?>
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('mensaje{destinatarios}')) {
    ?>
    <?php 
    echo form_error('mensaje{destinatarios}', array('class' => 'form-error-msg'));
    ?>
  <?php 
Example #14
0
</div>
<?php 
}
?>
 
<?php 
echo form_tag('informes/mostrar', 'method=get id=sf_admin_edit_form name=sf_admin_edit_form multipart=true');
?>
<legend>Debe completar los siguiente datos</legend>

<fieldset id="sf_fieldset_none" class="">
<?php 
foreach ($variables as $idx => $variable) {
    ?>
<div class="form-row"><?php 
    echo label_for($idx, __($idx . ':'));
    if (!is_array($variable)) {
        echo input_tag($variable);
    } else {
        echo select_tag($idx, options_for_select($variable));
    }
    ?>
</div><?php 
}
?>
    
</fieldset>



<?php 
Example #15
0
    echo form_tag('features/saveNew');
    ?>
      
      <?php 
    echo label_for('type', __('What do you want us to know about?'), array('style' => 'display:block;')), select_tag('type', options_for_select(array(sfConfig::get('app_feature_type_bug') => __('A Bug Report'), sfConfig::get('app_feature_type_feature') => __('A Feature Request'))));
    ?>

  <?php 
    echo label_for('type', __('What category is this in?'), array('style' => 'display:block;')), select_tag('category', options_for_select(array(sfConfig::get('app_feature_category_other') => __('Other'), sfConfig::get('app_feature_category_design') => __('Design'), sfConfig::get('app_feature_category_projects') => __('Projects'), sfConfig::get('app_feature_category_inbox') => __('Inbox'))));
    ?>
     
      <?php 
    echo label_for('title', __('What do you call your feature?'), array('style' => 'display:block;')), object_input_tag($new_feature, 'getTitle', array('size' => '30x3', 'style' => 'border:1px solid black;'));
    ?>
        <?php 
    echo label_for('description', __('Describe your feature in depth'), array('style' => 'display:block;')), object_textarea_tag($new_feature, 'getDescription', array('size' => '30x3'));
    ?>
      <?php 
    echo submit_tag('save', array('class' => 'btn'));
    ?>
      </form>
    </div>
  </div>
</div>
<?php 
}
foreach ($features as $feature) {
    ?>
<div class="suggested-feature" id="feature_<?php 
    echo $feature->getUuid();
    ?>
Example #16
0
}
?>
  <?php 
$value = checkbox_tag('tabla[mostrar_en_lista]', '', $tabla->getMostrarEnLista(), array('control_name' => 'tabla[mostrar_en_lista]'));
echo $value ? $value : '&nbsp;';
?>
  <div class="sf_edit_help"><?php 
echo __('Indique si desea que se muestre al usuario esta tabla en la lista de tablas');
?>
</div>
  </div>
</div>

<div class="form-row">
  <?php 
echo label_for('tabla[orden]', __($labels['tabla{orden}']) . ":", '');
?>
  <div class="content<?php 
if ($sf_request->hasError('tabla{orden}')) {
    ?>
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('tabla{orden}')) {
    ?>
    <?php 
    echo form_error('tabla{orden}', array('class' => 'form-error-msg'));
    ?>
  <?php 
Example #17
0
  </div>
    
    <div class="form-row">
    <?php 
echo label_for("filters[fecha_inicio]", __('inicio') . ":");
?>
    <div class="content">
    <?php 
echo input_date_range_tag('filters[fecha_inicio]', isset($filters['fecha_inicio']) ? $filters['fecha_inicio'] : null, array('rich' => true, 'withtime' => false, 'calendar_button_img' => '/images/icons/date.png'));
?>
    </div>
    </div>
    
    <div class="form-row">
    <?php 
echo label_for("filters[fecha_vencimiento]", __('vencimiento') . ":");
?>
    <div class="content">
    <?php 
echo input_date_range_tag('filters[fecha_vencimiento]', isset($filters['fecha_vencimiento']) ? $filters['fecha_vencimiento'] : null, array('rich' => true, 'withtime' => false, 'calendar_button_img' => '/images/icons/date.png'));
?>
    </div>
    </div>
    
  </fieldset>
	<!--Ana: Para el filtro por calendario -->
    <input type="hidden" name="filtro_calendario" id="filtro_calendario" value="0">
    <input type="hidden" name="mes" id="mes" value="<?php 
echo date('m');
?>
">
Example #18
0
<div id="sf_guard_auth_form">
<?php 
echo form_tag('@sf_guard_signin');
?>

  <fieldset>

    <div class="form-row" id="sf_guard_auth_username">
      <?php 
echo form_error('username'), label_for('username', __('FAN:')), input_tag('username', $sf_data->get('sf_params')->get('username'));
?>
    </div>

    <div class="form-row" id="sf_guard_auth_password">
      <?php 
echo form_error('password'), label_for('password', __('password:'******'password');
?>
    </div>
    <div class="form-row" id="sf_guard_auth_remember">
      <?php 
echo label_for('remember', __('Remember me?')), checkbox_tag('remember');
?>
    </div>
  </fieldset>

  <?php 
echo submit_tag(__('sign in')), link_to(__('Forgot your password?'), '@sf_guard_password', array('id' => 'sf_guard_auth_forgot_password'));
?>
</form>
</div>
Example #19
0
		
		<p> Enter your username and you will receive
			a new password by email.
		</p>
		
		<?php 
echo form_errors();
?>
		
		<?php 
echo form_tag('@request_password', array('class' => 'block'));
?>

		<ul>
		<li><span class="lbl"><?php 
echo label_for('username', 'Username');
?>
</span>
			<span class="fld medium"><?php 
echo input_tag('username', '', array('class' => 'textfield'));
?>
</span>
		</li>
		<li><span class="lbl"></span>
			<span class="btn"><?php 
echo submit_tag('Get a new password');
?>
</span>
		</li>
		</ul>
		</form>
Example #20
0
    echo form_error('cliente{codigo_postal}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_input_tag($cliente, 'getCodigoPostal', array('size' => 7, 'control_name' => 'cliente[codigo_postal]'));
echo $value ? $value : '&nbsp;';
?>
    </div>
</div>

<div class="form-row">
  <?php 
echo label_for('cliente[provincia]', __($labels['cliente{provincia}']), '');
?>
  <div class="content<?php 
if ($sf_request->hasError('cliente{provincia}')) {
    ?>
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('cliente{provincia}')) {
    ?>
    <?php 
    echo form_error('cliente{provincia}', array('class' => 'form-error-msg'));
    ?>
  <?php 
Example #21
0
    echo form_error('historico_documento{fecha}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_input_date_tag($historico_documento, 'getFecha', array('rich' => true, 'calendar_button_img' => '/sf/sf_admin/images/date.png', 'control_name' => 'historico_documento[fecha]', 'disabled' => true));
echo $value ? $value : '&nbsp;';
?>
    </div>
</div>

<div class="form-row">
  <?php 
echo label_for('historico_documento[id_usuario]', __($labels['historico_documento{id_usuario}']), '');
?>
  <div class="content">
  <?php 
$usuario = $historico_documento->getUsuario();
$value = $usuario ? $usuario->__toString() : "- " . __('Sin definir') . " -";
echo $value ? $value : '&nbsp;';
?>
  </div>
</div>

</fieldset>

<?php 
include_partial('edit_actions', array('historico_documento' => $historico_documento));
?>
<?php

//mostrar info del usuario
?>
<fieldset id="sf_fieldset_usuario" class="">
<h2><?php 
echo __('Usuario');
?>
</h2>
<div class="form-row">
  <?php 
echo label_for('usuario[nombre]', __($labels['usuario{nombre}']) . ":", '');
?>
  <div class="content">
  <?php 
$nombre = $usuario->getNombreCompleto();
echo $nombre ? $nombre : '-';
?>
  </div>
</div>
</fieldset>

<div class="form-row">
  <?php 
echo label_for('usuario[usuario]', __($labels['usuario{usuario}']), '');
?>
  <div class="content">
  <?php 
echo $usuario->getUsuario() ? $usuario->getUsuario() : '-';
?>
  </div>
</div>


<div class="form-row">
  <?php 
echo label_for('usuario[grupos]', __($labels['usuario{grupos}']), '');
?>
  <div class="content">
  <?php 
$grupos = $usuario->getGrupos();
$html = "<ul class=\"sf_admin_checklist\">\n";
foreach ($grupos as $grupo) {
    $html .= "<li>";
    $html .= $grupo->__toString();
    $html .= "</li>\n";
}
if (sizeof($grupos) <= 0) {
    $html .= "<li>" . "<i>" . __('vacĂ­o') . "</i>" . "</li>\n";
}
$html .= "</ul>\n";
echo $html;
Example #24
0
<div class="project-titlebar">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Personal Info</div>
<?php 
echo form_tag('user/updateProfile', 'multipart=true', array('name' => 'profile'));
?>
<div><?php 
echo image_tag($profile->getThumbnail());
?>
</div>
<?php 
echo input_file_tag('photo', array());
?>
<br /><?php 
echo label_for('photo_remove', __('remove photo:')), checkbox_tag('photo_remove', '0', false, array());
if ($sf_request->hasError('photo')) {
    echo $sf_request->getError('photo');
}
?>
<br />

<?php 
echo submit_tag('update profile', array());
?>
</form>


<?php 
/*
<label for="campus">campus: <?php echo select_tag('campus', objects_for_select($campuses, 'getId', 'getName', $profile->getCampusId(), array()), array('class'=>'xxx')) ?><?php if ($sf_request->hasError('campus')) { echo $sf_request->getError('campus'); } ?></label><br />
<label for="first_name">First Name: <?php echo object_input_tag($profile, 'getFirstName') ?><?php if ($sf_request->hasError('first_name')) { echo $sf_request->getError('first_name'); } ?><br /></label>
<label for="last_name">Last Name: <?php echo object_input_tag($profile, 'getLastName') ?><?php if ($sf_request->hasError('last_name')) { echo $sf_request->getError('last_name'); } ?><br /></label>
<label for="title">Title: <?php echo select_tag('title', options_for_select(array(
Example #25
0
		<?php 
    echo object_input_date_tag($parametro, 'getFecha', "rich=true calendar_button_img=calendar_button_img");
    ?>
  </div>
</div>
<?php 
}
?>


<?php 
if ($DefParametro->getCampoFichero() != "") {
    ?>
<div class="form-row">
	<?php 
    echo label_for('nombrefichero', __($DefParametro->getCampoFichero()));
    ?>
	<div class="row-data">
	    <?php 
    echo input_file_tag('nombrefichero', 0);
    ?>
<br />
      <?php 
    if (!$parametro->getTamano()) {
        ?>
          <font class='error'><?php 
        echo __('No hay fichero definido');
        ?>
</font>
      <?php 
    } else {
    echo form_error('formulario{comentario}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_textarea_tag($formulario, 'getComentario', array('size' => '50x3', 'control_name' => 'formulario[comentario]'));
echo $value ? $value : '&nbsp;';
?>
    </div>
</div>

<div class="form-row">
  <?php 
echo label_for('formulario[estado_interes]', __($labels['formulario{estado_interes}']), '');
?>
  <div class="content<?php 
if ($sf_request->hasError('formulario{estado_interes}')) {
    ?>
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('formulario{estado_interes}')) {
    ?>
    <?php 
    echo form_error('formulario{vendido}', array('class' => 'form-error-msg'));
    ?>
  <?php 
Example #27
0
    <?php 
}
?>

        <?php 
echo select_tag('legajopedagogico[fk_legajocategoria_id]', options_for_select($optionsCategoriaLegajo, $legajo_categoria_id));
?>
   </div>
        
        

</div>

        <div class="form-row">
        <?php 
echo label_for('adjunto', __('Agregar un nuevo adjunto:'));
?>
        <?php 
echo input_file_tag('file');
?>
        <?php 
//aqui deberiamos hacer una funcion verAdjunto?id=XX y mandar el mimetype con header y luego el contenido )
foreach ($aFile as $file) {
    ?>
<a href="<?php 
    echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot() . "/" . sfConfig::get('sf_upload_dir_name') . '/' . $file->ruta;
    ?>
"><?php 
    echo $file->nombre_archivo;
    ?>
</a>&nbsp;&nbsp;<?php 
Example #28
0
    <?php 
    echo form_error('tarea{fecha_vencimiento}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>
  <?php 
$value = input_fecha_tag('tarea[fecha_vencimiento]', $tarea->getFechaVencimiento());
echo $value ? $value : '&nbsp;';
?>
  </div>
</div>

<div class="form-row">
  <?php 
echo label_for('tarea[avisar_email_fin]', __($labels['tarea{avisar_email_fin}']) . ":");
?>
  <div class="content<?php 
if ($sf_request->hasError('tarea{avisar_email_fin}')) {
    ?>
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('tarea{avisar_email_fin}')) {
    ?>
    <?php 
    echo form_error('tarea{avisar_email_fin}', array('class' => 'form-error-msg'));
    ?>
  <?php 
<div class="sf_admin_filters">
<fieldset id="accesos_directos" class="accesos_directos">
  <h2><?php 
echo __('Datos');
?>
</h2>
  
  <div class="form-row">
    <?php 
echo label_for("empresa[nombre]", __('tablas') . ":");
?>
    <div class="content">
    <?php 
?>
    </div>
  </div>
</fieldset>
</div>
Example #30
0
        <?php 
    echo form_error('sf_asset{copyright}', array('class' => 'form-error-msg'));
    ?>
      <?php 
}
?>

      <?php 
echo object_input_tag($sf_asset, 'getCopyright', array('size' => 80, 'control_name' => 'sf_asset[copyright]'));
?>
    </div>
  </div>

  <div class="form-row">
    <?php 
echo label_for('sf_asset[type]', __('Type:', null, 'sfAsset'), '');
?>
    <div class="content<?php 
if ($sf_request->hasError('sf_asset{type}')) {
    ?>
 form-error<?php 
}
?>
">
      <?php 
if ($sf_request->hasError('sf_asset{type}')) {
    ?>
        <?php 
    echo form_error('sf_asset{type}', array('class' => 'form-error-msg'));
    ?>
      <?php