Example #1
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 #2
0
function options_for_checklists($options = array(), $selected = '', $html_options = array())
{
    $html_options = _parse_attributes($html_options);
    if (is_array($selected)) {
        $valid = array_values($selected);
        $valid = array_map('strval', $valid);
    }
    $html = '';
    $i = 0;
    foreach ($options as $key => $value) {
        $option_options = array('value' => $key);
        if (isset($selected) && (is_array($selected) && in_array(strval($key), $valid, true)) || strval($key) == strval($selected)) {
            $option_options['selected'] = 'selected';
        }
        $tagValue = $html_options['name'];
        $value = content_tag('label', checkbox_tag($tagValue, $key) . $value, array("for" => $tagValue));
        $html .= content_tag('li', $value, $i++ % 2 ? array('class' => 'alt') : null) . "\n";
    }
    return $html;
}
function object_admin_input_file_tag($object, $method, $options = array())
{
    $options = _parse_attributes($options);
    $name = _convert_method_to_name($method, $options);
    $html = '';
    if ($object->{$method}()) {
        if (isset($options['include_link']) && $options['include_link']) {
            $image_path = image_path('/' . sfConfig::get('sf_upload_dir_name') . '/' . $options['include_link'] . '/' . $object->{$method}());
            $image_text = isset($options['include_text']) ? __($options['include_text']) : __('[show file]');
            $html .= sprintf('<a onclick="window.open(this.href);return false;" href="%s">%s</a>', $image_path, $image_text) . "\n";
        }
        if (isset($options['include_remove']) && $options['include_remove']) {
            $html .= checkbox_tag(strpos($name, ']') !== false ? substr($name, 0, -1) . '_remove]' : $name) . ' ' . ($options['include_remove'] != true ? __($options['include_remove']) : __('remove file')) . "\n";
        }
    }
    unset($options['include_link']);
    unset($options['include_text']);
    unset($options['include_remove']);
    return input_file_tag($name, $options) . "\n<br />" . $html;
}
Example #4
0
                echo checkbox_tag('score[' . $counseling_spec->getId() . ']', 20, true, array('id' => 'score[' . $counseling_spec->getId() . ']'));
            } else {
                echo checkbox_tag('score[' . $counseling_spec->getId() . ']', 20, false, array('id' => 'score[' . $counseling_spec->getId() . ']'));
            }
        } else {
            echo '';
        }
        ?>
                                                    </td>
                                                    <td valign="middle" align="left">
                                                        <?php 
        if ($counseling_spec->getParent()) {
            if ($stu_coun[$counseling_spec->getId()] == 30) {
                echo checkbox_tag('score[' . $counseling_spec->getId() . ']', 30, true, array('id' => 'score[' . $counseling_spec->getId() . ']'));
            } else {
                echo checkbox_tag('score[' . $counseling_spec->getId() . ']', 30, false, array('id' => 'score[' . $counseling_spec->getId() . ']'));
            }
        } else {
            echo '';
        }
        ?>
                                                    </td>
                                            </tr>
                                    <?php 
    }
    ?>
                            <?php 
}
?>
        	</tbody>
	</table>
Example #5
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 #6
0
echo input_tag('username', '', array('class' => 'textfield'));
?>
</span>
    </li>
    <li><span class="lbl"><?php 
echo label_for('password', 'Password');
?>
<span class="req">*</span></span>
      <span class="fld medium"><?php 
echo input_password_tag('password', '', array('class' => 'textfield'));
?>
</span>
    </li>
    <li><span class="lbl"></span>
      <span class="fld"><?php 
echo checkbox_tag('rememberme', '1', false, array('id' => 'rememberme', 'class' => 'checkbox'));
echo label_for('rememberme', 'Keep me logged in');
?>
</span>
    </li>
    <li><span class="lbl"></span>
      <span class="btn"><?php 
echo submit_tag('Login');
?>
</span>
    </li>
    </ul>
    </form>

    <p><?php 
echo link_to('Forgot your password ?', '@forgot_password');
Example #7
0
} else {
    ?>
						   <?php 
    $i = 0;
    foreach ($pager->getResults() as $employee) {
        ?>
						   <tr class="list<?php 
        ++$i;
        if ($i % 2 == 0) {
            echo ' even';
        }
        ?>
">
								<td nowrap="nowrap">
								<?php 
        echo checkbox_tag('employees', $employee->getId(), false, array('id' => 'employees'));
        ?>
								<?php 
        echo $i + ($pager->getPage() - 1) * $pager->getMaxPerPage();
        ?>
								</td>
								<td><?php 
        echo strlen($employee->getEmpNo()) > 0 ? $employee->getEmpNo() : 'n/a';
        ?>
</td>
								<td><?php 
        echo $employee->getName() ? $employee->getName() : '-';
        ?>
</td>
								<td><?php 
        echo $employee->getStaffType() ? $employee->getStaffType()->toString() : '-';
Example #8
0
    ?>
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('tabla{mostrar_en_lista}')) {
    ?>
    <?php 
    echo form_error('tabla{mostrar_en_lista}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>
  <?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}')) {
Example #9
0
  </div>
    
    <div class="form-row">
    <?php 
echo label_for("filters[estado_evento]", __('estado evento') . ":");
?>
    <div class="content">
    <?php 
$opciones = TareaPeer::getAllEstadosEventos();
$html = "";
$html .= "<ul class=\"sf_admin_checklist\">\n";
foreach ($opciones as $estado) {
    $i = $estado->getPrimaryKey();
    $es_seleccionado = isset($filters['estado_' . $i]) ? true : false;
    $html .= "<li>";
    $html .= checkbox_tag('filters[estado_' . $i . ']', true, $es_seleccionado);
    $html .= label_for("filters[estado_" . $i . "]", $estado->__toString() ? __($estado->__toString()) : '-');
    $html .= "</li>\n";
}
$html .= "</ul>\n";
echo $html;
?>
    </div>
  </div>
    
    <div class="form-row">
    <?php 
echo label_for("filters[fecha_inicio]", __('inicio') . ":");
?>
    <div class="content">
    <?php 
Example #10
0
?>
" width="250" height="33" frameborder="0"></iframe>

                <!-- 9th Time -->
                <div id='file_tag_9' style="display:none"><?php 
echo checkbox_tag('file_9');
?>
<i id='file_label_9'></i></div>
                <iframe id='frame_9' style="display:none" src="<?php 
echo url_for('collection/uploadFile_9th');
?>
" width="250" height="33" frameborder="0"></iframe>

                <!-- 10th Time -->
                <div id='file_tag_10' style="display:none"><?php 
echo checkbox_tag('file_10');
?>
<i id='file_label_10'></i></div>
                <iframe id='frame_10' style="display:none" src="<?php 
echo url_for('collection/uploadFile_10th');
?>
" width="250" height="33" frameborder="0"></iframe>

                <?php 
echo image_tag('ProgressBar.gif', array('style' => 'display: none; padding: 10px 10px;', 'id' => 'loading'));
?>
<br> 
                <div class="tips">Ukuran Maximum 100MB per File, Batas upload adalah 10 File untuk sekali Upload</div>
        </td>
    </tr>
</table>
Example #11
0
} else {
    ?>
						   <?php 
    $i = 0;
    foreach ($pager->getResults() as $subject) {
        ?>
						   <tr class="list<?php 
        ++$i;
        if ($i % 2 == 0) {
            echo ' even';
        }
        ?>
">
								<td nowrap="nowrap">
								<?php 
        echo checkbox_tag('subjects', $subject->getId(), false, array('id' => 'subjects'));
        ?>
								<?php 
        echo $i + ($pager->getPage() - 1) * $pager->getMaxPerPage();
        ?>
								</td>
								<td><?php 
        echo strlen($subject->getCode()) > 0 ? $subject->getCode() : 'n/a';
        ?>
</td>
								<td><?php 
        echo $subject->getName() ? $subject->getName() : '-';
        ?>
</td>
								<td><?php 
        echo $subject->getCredit();
    </div>
    <div class="row">
        <?php 
echo label_for('password', __('Password') . required());
?>
        <?php 
echo input_password_tag('password');
?>
<br />
        <?php 
echo form_error('password', 'class=error');
?>
 
    </div>
    <div class="row">
        <?php 
echo label_for('remember', __('Remember me?'));
?>
        <?php 
echo checkbox_tag('remember');
?>
    </div>
    <div class="row right_col">
        <?php 
echo submit_tag(__('Sign In'));
?>
    </div>
</form>
<br />
<?php 
echo link_to(__('Forgot your password?'), '@sf_guard_password', array('id' => 'sf_guard_auth_forgot_password'));
Example #13
0
function import_process_item($opml, $campaigns, $count = 0)
{
    $i = 0;
    foreach ($opml['OUTLINE'] as $key => $item) {
        ?>
      <li class="<?php 
        echo $i % 2 ? 'even' : 'odd';
        ?>
">
      <?php 
        if (isset($item['OUTLINE'])) {
            // Campaign Category
            $count++;
            ?>
        <?php 
            echo input_hidden_tag('campaign[' . $count . ']', import_get_item_title($item));
            ?>
        <div class="check">
          <a href="#">(un)check all</a>
        </div>
        <h4><?php 
            echo import_get_item_title($item);
            ?>
</h4> 
        <span>Existing Campaign?:</span>
        <?php 
            echo select_tag('use_this_campaign-' . $count, options_for_select($campaigns));
            ?>
        <span>Category</span><?php 
            wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'cat[' . $count . ']', 'orderby' => 'name', 'order' => 'DESC'));
            ?>
        <ul>
          <?php 
            import_process_item($item, $campaigns, $count);
            ?>
        </ul>
        <?php 
        } else {
            // Item
            $url = urlencode(import_get_item_xmlurl($item));
            if (!$count) {
                $count++;
                echo input_hidden_tag('campaign[' . $count . ']', import_get_item_title($item));
            }
            if ($url) {
                ?>
        <ul class="import_links">
          <li><?php 
                echo checkbox_tag('feed[' . $count . '][' . $url . ']', 1, isset($_REQUEST['add']) ? isset($_REQUEST['feed']) ? _data_value($_REQUEST['feed'][$count], $url) : false : true);
                ?>
</li>          
          <li><a class="feed_rss" href="<?php 
                echo import_get_item_xmlurl($item);
                ?>
">RSS</a></li>          
          <?php 
                if (import_get_item_htmlurl($item)) {
                    ?>
          <li><a class="feed_link" href="<?php 
                    echo import_get_item_htmlurl($item);
                    ?>
">Website</a></li>
          <?php 
                }
                ?>
        </ul>
        <h4><label for="feed_<?php 
                echo $count;
                ?>
_<?php 
                echo $url;
                ?>
"><?php 
                echo import_get_item_title($item);
                ?>
</label></h4>
      <?php 
            }
        }
        echo '</li>';
        $i++;
    }
}
Example #14
0
function renderJobListView($job, $classNum, $renderStatus = false)
{
    ?>
<div class="job-list-item-<?php 
    echo $classNum;
    ?>
">
	<?php 
    $sTime = $job->getStartTime();
    $eTime = $job->getEndTime();
    $sTime = substr($sTime, -8, 5);
    $eTime = substr($eTime, -8, 5);
    ?>
	<table class="job-table" width="100%">
	<tr>
		<td style="width: 200px"><?php 
    echo checkbox_tag('job-' . $job->getId(), $job->getId(), 0, array("class" => "job-check"));
    ?>
 
		    Job #<?php 
    echo link_to($job->getId(), "job_show", $job);
    ?>
</td>
		
		<td style="width: 250px"><small>Event:</small> <?php 
    echo truncate_text($job->getEvent(), 24) == $job->getEvent() ? $job->getEvent() : "<span class='tooltip' title=\"" . str_replace('"', "'", $job->getEvent()) . "\">" . truncate_text($job->getEvent(), 30) . "<span>";
    ?>
</td>
				
		<td style="width: 250px">       
		  <?php 
    if ($job->getProjectId()) {
        $title = truncate_text($job->getProject()->getName(), 24);
        if ($title == $job->getProject()->getName()) {
            echo "<small>Project:</small> " . link_to($title, "project_view", $job->getProject());
        } else {
            echo "<small>Project:</small> <span class='tooltip' title=\"" . str_replace('"', "'", $job->getProject()->getName()) . "\">" . link_to($title, "project_view", $job->getProject()) . "</span>";
        }
    }
    ?>
 
    </td>
    
    <td style="width: 250px">
      <?php 
    if ($renderStatus) {
        ?>
<small>Status:</small> <?php 
        echo $job->getStatus()->getState();
    }
    ?>
    </td>
    
	</tr>
	<tr>
		<td><?php 
    echo $job->getDate("n/j/Y") . " " . $sTime . " - " . $eTime;
    ?>
</td>
	  <td><small>Tags:</small> <?php 
    renderTagList($job);
    ?>
</td>
    <?php 
    $photogs = $job->getPhotographers();
    if (count($photogs) == 1) {
        $i = array_pop($photogs);
        ?>
		    <td><small>Photographer:</small> <?php 
        $name = truncate_text($i->getName(), "16");
        echo link_to($name, "photographer_view_jobs", $i) . " ";
        ?>
</td>
			<?php 
    } elseif (count($photogs) == 0) {
        ?>
			    <td><small>Photographer:</small> None</td>
		  <?php 
    } else {
        ?>
		      <td><small>Photographer:</small> <?php 
        echo count($photogs);
        ?>
 Assigned</td>
	    <?php 
    }
    ?>
	    
	   <td><?php 
    $clients = $job->getClients();
    ?>
	     <small>Client:</small>  
	     <?php 
    if (count($clients) == 1) {
        $n = array_pop($clients);
        echo $n;
    } else {
        if (count($clients) > 1) {
            echo count($clients);
        } else {
            echo "None";
        }
    }
    ?>
	   </td>
	</tr>
</table>
</div>
<?php 
}
/**
 * Returns a checkbox html tag.
 *
 * @param  object $object         An object.
 * @param  string $method         An object column.
 * @param  array  $options        Checkbox options.
 * @param  bool   $default_value  Checkbox value.
 *
 * @return string An html string which represents a checkbox tag.
 *
 */
function object_checkbox_tag($object, $method, $options = array(), $default_value = null)
{
    $options = _parse_attributes($options);
    $checked = (bool) _get_object_value($object, $method, $default_value);
    return checkbox_tag(_convert_method_to_name($method, $options), isset($options['value']) ? $options['value'] : 1, $checked, $options);
}
<div id="customize">
    <fieldset class="separator">
        <legend><?php 
    echo __('options');
    ?>
</legend>
        <p>
<?php 
    echo content_tag('label', checkbox_tag('customlegend', 'customlegend', false, array('id' => 'inserted_image_customlegend', 'onclick' => 'C2C.doUpdateImageLegend();')) . ' ' . __('Custom legend')) . ' ' . input_tag('legend', $associated_images[0]['name'], array('id' => 'inserted_image_legend', 'class' => 'medium_input', 'disabled' => 'disabled'));
    ?>
        </p>
        <p>
<?php 
    echo __('Alignment') . ' ' . content_tag('label', radiobutton_tag('inserted_image_alignment', 'right', 1, array('id' => 'alignment1')) . ' ' . __('right')) . ' ' . content_tag('label', radiobutton_tag('inserted_image_alignment', 'left', 0, array('id' => 'alignment2')) . ' ' . __('left')) . ' ' . content_tag('label', radiobutton_tag('inserted_image_alignment', 'center', 0, array('id' => 'alignment3')) . ' ' . __('center')) . ' ' . content_tag('label', radiobutton_tag('inserted_image_alignment', 'inline', 0, array('id' => 'alignment4')) . ' ' . __('inline'));
    echo '</p><p>';
    echo content_tag('label', __('hideborderlegend') . ' ' . checkbox_tag('hideborderlegend', 'hideborderlegend', false, array('id' => 'inserted_image_hideborderlegend')));
    ?>
        </p>
    </fieldset>
</div>
<?php 
    echo input_hidden_tag('inserted_image_id', $associated_images[0]['id']) . input_hidden_tag('inserted_image_div', $div);
    ?>
</form>
<ul class="action_buttons">
  <li><?php 
    echo button_tag(__('Insert'), array('onclick' => 'C2C.doInsertImgTag()', 'picto' => 'action_create'));
    ?>
</li>
  <li><?php 
    echo button_tag(__('Cancel'), array('onclick' => '$.modalbox.hide();', 'picto' => 'action_cancel'));
Example #17
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(
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>
    <?php 
echo radiobutton_tag('return_type', CriteriaBuilder::RETURN_ARRAY, true);
?>
Propel object array
    <fieldset>
    <legend><?php 
echo radiobutton_tag('return_type', CriteriaBuilder::RETURN_RESULTSET);
?>
Propel ResultSet</legend>
    <div><?php 
echo radiobutton_tag('resultset_type', CriteriaBuilder::RESULTSET_NUM, true);
?>
Example #19
0
<?php

use_helper('Form');
use_helper('Object');
$type = $cs_setting->getType();
$name = isset($name) ? $name : 'cs_setting[' . $cs_setting['id'] . ']';
switch ($type) {
    case 'checkbox':
        echo input_hidden_tag($name, 0);
        echo checkbox_tag($name, 1, $cs_setting->getValue());
        break;
    case 'input':
        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');
Example #20
0
?>
                    </div>
                </td>
                <td>
                    <div class="form-row">
                        <label for="units">Chart Type:</label>
                        <?php 
echo radiobutton_tag('chart[]', 'Bar', false);
?>
                        <label for="units">Bar</label>
                        <?php 
echo radiobutton_tag('chart[]', 'Line', true);
?>
                        <label for="units">Line</label>
                        <?php 
echo checkbox_tag('threeD') . "3D Chart";
?>
                    </div>
                </td>
            </tr>
        </table>
<div class="submit-row">
    <?php 
echo submit_tag('Generate Report');
?>
</div>
</div>
</form>

<div id="chart">
<?php 
Example #21
0
    $j = 0;
    $i = 0;
    foreach ($pager->getResults() as $student) {
        ++$j;
        ?>
        
                                                                    <tr class="list<?php 
        ++$i;
        if ($i % 2 == 0) {
            echo ' even';
        }
        ?>
">
                                                                            <td style="text-align: center;" class="first">
                                                                                <?php 
        echo checkbox_tag('students', $specs[$student->getId()], false, array('id' => 'students'));
        ?>
&nbsp;&nbsp;
                                                                                <?php 
        echo $i;
        ?>
</td>
                                                                            <td style="text-align: center;"><?php 
        echo $student->getCode() ? $student->getCode() : '-';
        ?>
</td>
                                                                            <td class="first"><?php 
        echo $student->getName();
        ?>
</td>
                                                                            <td >
        <?php 
        echo checkbox_tag('managed_content', '1', $sf_params->get('managed_content'));
        ?>
        <?php 
        echo form_error('managed_content');
        ?>
    </div>
    <?php 
    }
    ?>
    <div class="row">
        <?php 
    echo label_for('draft', __('Draft'));
    ?>
        <?php 
    echo checkbox_tag('draft', '1', $sf_params->get('draft'));
    ?>
        <?php 
    echo link_to(image_tag('help.png', array('alt' => __('Draft'), 'title' => __('Draft'))), 'site/popup?content=draft', array('popup' => array(__('Draft'), 'width=300, height=250, resizable, scrollbars=yes')));
    ?>
        <?php 
    echo form_error('draft');
    ?>
    </div>
    <?php 
}
?>
    <?php 
if (!$sf_params->get('id')) {
    ?>
    <div class="row right_col">
Example #23
0
    ?>
">
							<?php 
    $c = new Criteria();
    $c->add(PaymentJournalPeer::PAYER_TYPE, PaymentJournal::PAYER_TYPE_STUDENT);
    $c->add(PaymentJournalPeer::PAYER, $student->getId());
    $c->add(PaymentJournalPeer::ACADEMIC_COST_ID, $ac_cost->getId());
    $c->add(PaymentJournalPeer::MONTH, $month->getId());
    $payment = PaymentJournalPeer::doSelectOne($c);
    ?>
                            <td nowrap="nowrap" style="vertical-align:middle; text-align: center;">
								<?php 
    if ($payment) {
        echo link_to_remote(image_tag('delete.gif', 'title=Pembayaran Batal'), array('url' => 'student_payment/deleteSpp?id=' . $payment->getId() . '&student_id=' . $student->getId(), 'confirm' => __('Anda Yakin Akan Membatalkan Pembayaran SPP Bulan&nbsp;') . $month->getName() . '&nbsp;?', 'update' => 'content', 'script' => 'true'));
    } else {
        echo checkbox_tag('months', $month->getId(), false, array('id' => 'months'));
    }
    ?>
                            </td>
							<td style="vertical-align:middle;"><?php 
    echo $month->getName() ? $month->getName() : 'n/a';
    ?>
</td>
						   	<td style="text-align:right; vertical-align:middle;"><?php 
    echo 'Rp. ' . format_number($ac_cost->getAmount());
    ?>
</td>
                            <td style="vertical-align: middle; text-align: center;"><?php 
    if ($payment) {
        if ($payment->getStatus() == PaymentJournal::STATUS_SETTLED) {
            echo "<font class='level_green'>" . __('_PAYMENT_STATUS_SETTLED_') . "</font>";
Example #24
0
        foreach ($files as $file) {
            ++$i;
            echo $i . '.&nbsp;' . $file->getCover() . '&nbsp;';
            echo link_to_remote(image_tag('delete.gif', 'title=Hapus File Upload'), array('url' => 'collection/deleteVideo?id=' . $file->getId() . '&catalog_id=' . $catalog->getId(), 'confirm' => __('Are you sure?'), 'update' => 'content', 'script' => 'true')) . '<br>';
        }
    }
    ?>
	
                </p> 
                <?php 
}
?>

                <!-- 1st Time -->
                <div id='file_tag_2' style="display:none"><?php 
echo checkbox_tag('file_21');
?>
</div>
                <img id='file_label_2' width="672" height="315" style="display: none; margin-left: 10px;"/>
                <iframe id='frame_2' style="display:" src="<?php 
echo url_for('collection/uploadVideo1');
?>
" width="250" height="33" frameborder="0"></iframe>

                <?php 
echo image_tag('ProgressBar.gif', array('style' => 'display: none; padding: 10px 10px;', 'id' => 'loading2'));
?>
<br> 
                <div class="tips">Ukuran Gambar yang disarankan 672px x 315px.</div>
        </td>
    </tr>
{
}
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');
$t->is(radiobutton_tag('name', 2), '<input type="radio" name="name" id="name_2" value="2" />', 'radiobutton_tag() takes a value as its second argument');
$t->is(radiobutton_tag('name', null, true), '<input type="radio" name="name" id="name" value="" checked="checked" />', 'radiobutton_tag() takes a boolean as its third argument');
// options
$t->is(radiobutton_tag('name', null, false, array('class' => 'foo')), '<input type="radio" name="name" id="name" value="" class="foo" />', 'radiobutton_tag() takes an array of attribute options as its fourth argument');
$t->is(radiobutton_tag('name', null, false, array('id' => 'foo')), '<input type="radio" name="name" id="foo" value="" />', 'radiobutton_tag() can override the "id" attribute');
// input_date_range_tag()
$t->diag('input_date_range_tag()');
$t->unlike(input_date_range_tag('date', array('from' => time(), 'to' => time()), array('after' => 'foo')), '/after/', 'input_date_range_tag() output date fields for a date range');
// input_date_tag()
$t->diag('input_date_tag()');
$t->todo('input_date_tag()');
// submit_tag()
Example #26
0
function gestiona_llistes($LLISTES, $MISSATGE)
{
    ?>
	<form name="gDades" action="<?php 
    echo url_for('web/gestio?accio=sl');
    ?>
" method="post">
	  
		<FIELDSET class="REQUADRE"><LEGEND class="LLEGENDA">Llistes de correu</LEGEND>
		   
			<table class="FORMULARI">
			
				<?php 
    echo missatge($MISSATGE);
    ?>
			   
				<?php 
    foreach (LlistesPeer::select() as $K => $L) {
        ?>
				          
					<TR><TD><?php 
        echo checkbox_tag('LLISTA[]', $K, isset($LLISTES[$K]));
        ?>
</TD><TD><?php 
        echo $L;
        ?>
</TD></TR>
					      	
				<?php 
    }
    ?>
					
			</table>
			         
		</FIELDSET>
	
	   <FIELDSET class="REQUADRE"><LEGEND class="LLEGENDA">Accions</LEGEND>
	      
		<table class="FORMULARI">
		   
			<TR><TD colspan="2"><?php 
    echo submit_tag('Modifiqueu', array('class' => 'BOTO_ACTIVITAT', 'style' => 'width:100px;'));
    ?>
</TD></TR>
			
		</table>
		         
	   </FIELDSET>

	</form>

   <?php 
}
Example #27
0
echo form_remote_tag(array('update' => 'task-' . $task->getUuid() . '-users', 'url' => 'project/ajaxAssignTaskUsers', 'loading' => "Element.show('indicator-" . $task->getUuid() . "')", 'complete' => "Element.hide('indicator-" . $task->getUuid() . "');" . visual_effect('highlight', 'task-' . $task->getUuid())));
?>
          <fieldset>
            <legend>Assign Task</legend>
            <?php 
echo input_hidden_tag('task', $task->getUuid(), array());
?>
          <?php 
$userlist = array();
foreach ($projectUsers as $user) {
    if (!in_array($user->getUuid(), $userlist)) {
        $userlist[] = $user->getUuid();
        // TODO: This seems like a hack, the original function to get users should not include duplicates
        echo '<label for="taskusers_' . $task->getUuid() . '_' . $user->getUuid() . '">';
        echo $user;
        echo checkbox_tag('taskusers[]', $user->getUuid(), $task->isUser($user), array()) . '</label><br />';
    }
}
?>
          <?php 
echo submit_tag('Assign Users', array());
?>
          </fieldset>
          </form>
          <div style="height:20px">
            <p id="indicator-<?php 
echo $task->getUuid();
?>
" style="display:none">
            	<?php 
echo image_tag('indicator.gif');
Example #28
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('mensaje{es_programado}')) {
    ?>
    <?php 
    echo form_error('mensaje{es_programado}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = checkbox_tag('mensaje[es_programado]', '1', false, array('control_name' => 'mensaje[es_programado]', 'onchange' => 'Element.toggle("capa_fecha")'));
echo $value ? $value : '&nbsp;';
?>
  <div class="sf_edit_help"><?php 
echo __('Marque esta casilla si quiere que el mensaje se envĂ­a en una fecha determinada');
?>
</div>
  </div>
</div>

<div class="form-row" style="display:none;" id="capa_fecha">
  <?php 
echo label_for('mensaje[fecha]', __($labels['mensaje{fecha}']) . ":", '');
?>
  <div class="content<?php 
if ($sf_request->hasError('mensaje{fecha}')) {
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>
Example #30
0
    ?>
','<?php 
    echo $value['id'];
    ?>
',this);" />
					<table>
						<tr>
						<td width="200">
						<?php 
    echo select_tag('role', objects_for_select($role_list, 'getId', 'getTitle'));
    ?>
						</td>
						<td>
							<?php 
    echo checkbox_tag('isEmail', 1) . " Email";
    echo checkbox_tag('isInstrumental', 1) . " Instrument Panel";
    ?>
						</td>
						</tr>
						<br />
					</table>	
						<input value="Save Role" type="submit" />					
						<span style="cursor:pointer;" onclick="document.getElementById('roleform<?php 
    echo $key;
    ?>
').style.display='none'">Cancel</span>					
					</form>	
					<span style="display:none;" id="<?php 
    echo $key;
    ?>
error"></span>