function button_to_modal_box_preview($name, $id_formulario, $informe)
{
    use_helper('Javascript');
    $js = "\n  function preview_informe()\n  {\n    Modalbox.show('" . url_for('informes/preview?id_informe=' . $informe->getPrimaryKey()) . "', {title: '" . __('Vista preliminar del informe') . "', width: 700});\n  }";
    $html = content_tag('script', $js, array('type' => 'text/javascript'));
    $html .= button_to_function($name, 'preview_informe();', array('class' => 'sf_action_show', 'submit' => $id_formulario));
    $html .= "\n";
    return $html;
}
Пример #2
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);
    }
}
Пример #3
0
    ?>
</td></tr>
  <tr><th>End Time</th>
  <td><?php 
    echo $basicInfoForm["end_time"]->render(array("size" => 7, "nojs" => true));
    ?>
</td></tr>
  <?php 
    echo $basicInfoForm["due_date"]->renderRow();
    ?>
  <?php 
    echo $basicInfoForm["contact_name"]->renderRow();
    ?>
  <?php 
    echo $basicInfoForm["contact_email"]->renderRow();
    ?>
  <?php 
    echo $basicInfoForm["contact_phone"]->renderRow();
    ?>
  <tr><td><?php 
    echo button_to_function("Save", "saveBasicInfo()");
    ?>
  <?php 
    echo $basicInfoForm->renderHiddenFields();
    ?>
  </td></tr>
</table>
</form>

<?php 
}
Пример #4
0
       action="<?php 
echo url_for("client_edit", array("form" => 'info', "client_id" => $client->getId()));
?>
"
       method="post">
<table id="info-edit" style="display: none">
  <?php 
echo $InfoForm["name"]->renderRow();
?>
  <?php 
echo $InfoForm["department"]->renderRow();
?>
  <?php 
echo $InfoForm["address"]->renderRow();
?>
  <?php 
echo $InfoForm["email"]->renderRow();
?>
  <?php 
echo $InfoForm["phone"]->renderRow();
?>
  <tr><td><?php 
echo button_to_function("Save", "saveClientInfo()");
?>
  <?php 
echo $InfoForm->renderHiddenFields();
?>
  </td></tr>
</table>
</form>
Пример #5
0
    ?>
    <?php 
    echo "<h3>";
    echo __("Se generará un archivo con la información de la base de datos");
    echo "<br/>";
    echo __('¿Desea continuar?');
    echo "</h3>";
    echo form_remote_tag(array('url' => 'backups/generar', 'update' => 'actualizable', 'loading' => "Element.hide('capa_generar');" . visual_effect("toggle_appear", "indicador"), 'complete' => "Element.hide('indicador')", 'success' => "this.document.location.reload(true);"), 'id=formulario_generar');
    ?>
    
    <?php 
    echo submit_tag('Aceptar');
    ?>
    &nbsp;&nbsp;&nbsp;
    <?php 
    echo button_to_function(__('Cancelar'), visual_effect('toggle_appear', 'capa_generar'));
    ?>
    </form>
    <?php 
}
?>

</div>

<div style="display:none" id="resultado_backup"> Espere un momento, por favor ...</div>
<div class="indicador" style="display:none" id="indicador">
    <p style="text-align:center;top:700%"><br />
    <?php 
echo image_tag('/images/ajax-loader.gif', array('alt' => __('cargando'), 'title' => __('cargando'), 'align' => 'center'));
?>
    <br /><br />La operación se esta realizando, espero por favor...<br />                                                          
Пример #6
0
    $avgSpeed = $sf_params->get('avg_speed');
}
echo $avgSpeed;
?>
    </div>

    <div class="form-row">
        <label for="model">Calories Burned:</label>
        <?php 
if ($calories) {
    $cal = $calories;
} else {
    $cal = $sf_params->get('cal_burned');
}
echo $cal;
?>
    </div>

</fieldset>
<div class="submit-row">
<?php 
echo input_hidden_tag('statid', $statid);
$editUrl = "Modalbox.show('userstats/edit?statid=" . $statid . "', {title:' Edit Ride', width: 600});return false;";
$cancelUrl = "Modalbox.hide();return false;";
$deleteUrl = "Modalbox.show('userstats/delete?statid=" . $statid . "', {title:' Delete Ride', width: 600});return false;";
echo button_to_function('Edit', $editUrl);
echo button_to_function('Cancel', $cancelUrl);
echo button_to_function('Delete', $deleteUrl);
?>
</div>
</form>
Пример #7
0
       method="post">
	<table id="shoot-edit-table" style="display: none">
	   <?php 
    echo $form["street"]->renderRow();
    ?>
	   <?php 
    echo $form["city"]->renderRow();
    ?>
	   <?php 
    echo $form["state"]->renderRow();
    ?>
	   <?php 
    echo $form["zip"]->renderRow();
    ?>
	   <tr><td><?php 
    echo button_to_function("Save", "saveShootInfo()");
    ?>
	</table>
</form>
<?php 
}
?>

<script type="text/javascript">
  var map;

  $(document).ready( function(){
	  initialize();
  });
  function initialize() {
    
Пример #8
0
    include_component($editModule, "editView", array("name" => $name, "type" => $type, "permid" => $permid, "options" => $options, "updating" => $updating, "validationData" => $validationData));
    ?>

	<ul class="a-controls a-slot-save-cancel-controls">  
	  <li>
			<input type="submit" name="Save" value="<?php 
    echo htmlspecialchars(__('Save', null, 'apostrophe'));
    ?>
" class="submit a-submit" id="<?php 
    echo 'a-slot-form-submit-' . $id;
    ?>
" />
		</li>
	  <li>
			<?php 
    echo button_to_function(__("Cancel", null, 'apostrophe'), "", array("class" => "a-cancel", 'id' => 'a-slot-form-cancel-' . $id));
    ?>
		</li>
	</ul>

  </form>

	<script type="text/javascript" charset="utf-8">
		$('#a-slot-form-<?php 
    echo $id;
    ?>
').submit(function() {
	    $.post(
	      <?php 
    // These fields are the context, not something the user gets to edit. So rather than
    ?>
Пример #9
0
      <small><?php 
echo $job->getNumberRevisions();
?>
 revisions</small>
    </a>
  </div>
  
  <br/>
  <?php 
echo $job->getNotes();
?>
</div>

<div id="internal-notes-edit" style="display: none">
  <form name="internal-notes-form" id="internal-notes-form" 
      action="<?php 
echo url_for("job_edit", array("form" => 'internal', "job_id" => $job->getId()));
?>
"
       method="post">
    <?php 
echo input_hidden_tag("job_id", $job->getId());
?>
    <?php 
echo textarea_tag("internal-edit", $job->getNotes(), array("rows" => 20, "cols" => 50));
?>
    <?php 
echo button_to_function("Update", "saveInternalNotes()");
?>
  </form>
</div>
Пример #10
0
           <?php 
echo button_to_function('Undo', "undoPoint()") . "Undo the last point on the map.";
?>
           <br>
           <?php 
//php echo button_to_function('Done', "done()")
?>
           <?php 
echo button_to_function('Cancel', "editDone()") . "Cancel editing.";
?>
           <br><br>
           <?php 
echo checkbox_tag('mapMileage') . "Use map mileage - Check this if you want to use the mileage from the map for the ride.";
?>
           <div class="submit-row">
               <?php 
echo submit_tag('Save Map') . "Save the map as it currently is.";
?>
           </div>
           </form>
       </div>
       <div id="control">
           <?php 
echo button_to_function('Edit', "doEdit()") . "Edit existing map.";
?>
       </div>
   </div>
   
</div>
</div>
    <?php 
echo asset_image_tag($sf_asset, 'large', array('class' => 'thumb'));
?>

    <div class="form-row">
      <label><?php 
echo __('Filename', null, 'sfAsset');
?>
</label>
      <div class=""><?php 
echo $sf_asset->getUrl();
?>
</div>
    </div>

    <?php 
echo $form;
?>

    </fieldset>

    <ul class="sf_admin_actions">
      <li>
        <?php 
echo button_to_function(__('Insert', null, 'sfAsset'), "insertAction(\r\n           '" . $sf_asset->getUrl() . "',\r\n           \$('alt" . $sf_asset->getId() . "').value,\r\n           \$('border" . $sf_asset->getId() . "').checked,\r\n           \$('legend" . $sf_asset->getId() . "').checked,\r\n           \$('description" . $sf_asset->getId() . "').value,\r\n           \$('align" . $sf_asset->getId() . "').value,\r\n           \$('thumbnails" . $sf_asset->getId() . "').selectedIndex,\r\n           \$('width" . $sf_asset->getId() . "').value\r\n          )", 'class=sf_admin_action_save');
?>
      </li>
    </ul>
  </fieldset>
</form>
Пример #12
0
    ?>

<form id="billing-info-form"
       action="<?php 
    echo url_for("job_edit", array("form" => 'billing', "job_id" => $job->getId()));
    ?>
"
       method="post">
	<table id="billing-edit-table" style="display: none">
	   <?php 
    echo $form["estimate"]->renderRow();
    ?>
	   <?php 
    echo $form["processing"]->renderRow();
    ?>
	   <tr><td><?php 
    echo button_to_function("Save", "saveBillingInfo()");
    ?>
	</table>
</form>

<?php 
    echo link_to("Print Invoice", "job_invoice", array("slug" => $job->getSlug()), array("target" => "_blank"));
    ?>

<?php 
}
?>

<div id="invoice"></div>
    </a>
  </div>

   <div id="hiddenAddPhotographer" style="display:none">
     <h3>Add Photographer:</h3>
     <label for="add-photographer-name">
       Photographer Name <br/>
     </label>
     <?php 
echo input_tag("add-photographer-name", "", array("size" => 30));
?>
     <?php 
echo input_hidden_tag("add-photographer-id");
?>
     <?php 
echo button_to_function("Add", "addPhotographerToJob()");
?>
   </div>

	<div id="job-photographer-list">
	  <?php 
include_partial("photographerList", array("job" => $job));
?>
	</div>

</div>

<hr />

<div class="info-header">Billing and Delivery <a href="#"
	onclick="javascript:$('#job-billing-info').toggle(); return false;">[tg]</a>
Пример #14
0
echo input_tag("project-name", "", array("size" => 40));
?>
 <br />
  
  <label for="project-create-new">Create new project</label>
  <?php 
echo checkbox_tag("project-create-new", 1, false);
?>
 <br />

  <label for="project-create-remove">Remove from project</label>
  <?php 
echo checkbox_tag("project-create-remove", 1, false);
?>
 <br />
  
  <?php 
echo input_hidden_tag("add-project-id");
?>
  <?php 
echo button_to_function("Add", "addToProject()");
?>
</div>

<div id="hiddenSearchByTag" style="display:none">
  <h3>Search By Tag</h3>
  <?php 
echo input_tag("search-tag", "", array("size" => 25));
?>
</div>
Пример #15
0
echo radiobutton_tag('mood', 'good', $sf_request->getParameter('mood') == 'good', array('class' => 'styled_good', 'onclick' => "onMoodSelect('good')"));
?>
    <?php 
echo radiobutton_tag('mood', 'normal', $sf_request->getParameter('mood') == 'normal', array('class' => 'styled_normal', 'onclick' => "onMoodSelect('normal')"));
?>
    <?php 
echo radiobutton_tag('mood', 'bad', $sf_request->getParameter('mood') == 'bad', array('class' => 'styled_bad', 'onclick' => "onMoodSelect('bad')"));
?>
</div>
<div id="main_question" style="display:none; font-weight:bold;"></div>
<?php 
echo textarea_tag('text', $sf_request->getParameter('text'), array('rows' => 2, 'cols' => 50, 'style' => 'display:none'));
?>
<br/>
<?php 
echo button_to_function(__('Написать'), 'onSubmitWriteClick()', array('id' => 'submit_write', 'style' => 'display:none; margin-bottom: 10px;'));
?>

<div id='registration_promt' style="display:none">
    <p><?php 
echo __('Теперь надо бы зарегистрироваться ;)');
?>
</p>
    <?php 
echo $form;
?>
    <li><small><p><?php 
echo __("*Для того, чтобы общаться, надо указать свою настоящую почту.");
?>
</p></small></li>
    <?php 
Пример #16
0
}
?>
<div id="item_provincia">
  <?php 
echo object_select_tag($cuenta, 'getFkProvinciaId', array('related_class' => 'Provincia', 'peer_method' => 'getEnOrden', 'control_name' => 'cuenta[fk_provincia_id]'));
?>
</div>            </td> 
            <td></td>
            <td></td> -->
            <td>CP:</td> 
            <td>
                <?php 
if ($sf_request->hasError('cuenta{codigo_postal}')) {
    echo form_error('cuenta{codigo_postal}', array('class' => 'form-error-msg'));
}
echo object_input_tag($cuenta, 'getCodigoPostal', array('size' => 16, 'control_name' => 'cuenta[codigo_postal]'));
?>
            </td>
        </tr>


    </table><br>
    <?php 
echo submit_to_remote('ajax_submit', 'Grabar', array('update' => 'nueva_cuenta', 'url' => 'alumno/grabarCuenta?vista=noMuestraMenu', 'script' => true));
?>
    <?php 
echo button_to_function('Cerrar', update_element_function('nueva_cuenta', array('content' => '')));
?>

</form>
</div> 
Пример #17
0
    ?>

<form id="photography-info-form"
       action="<?php 
    echo url_for("job_edit", array("form" => 'photography', "job_id" => $job->getId()));
    ?>
"
       method="post">
	<table id="photography-edit-table" style="display: none">
	   <?php 
    echo $form["photo_type"]->renderRow();
    ?>
 
 
	   <?php 
    if ($job->getOther()) {
        echo $form['other']->renderRow();
    } else {
        echo $form["ques1"]->renderRow();
        echo $form["ques2"]->renderRow();
        echo $form["ques3"]->renderRow();
    }
    ?>
	   <tr><td><?php 
    echo button_to_function("Save", "savePhotographyInfo()");
    ?>
	</table>
</form>

<?php 
}
Пример #18
0
function jq_button_to_function($name, $function, $html_options = array())
{
    return button_to_function($name, $function, $html_options);
}
Пример #19
0
  <div class="box" id="list-container">
  
	<div id="now-viewing"> 
	  Viewing all projects <?php 
echo image_tag("loading.gif", array("id" => "ajax-loading"));
?>
 
	</div>
	
	<div id="create-project">
	 <a href="#" onclick="showProjectCreate()">Create Project</a>
	 <div id="create-project-form" style="display:none">
	   <label for="project-name">Name:</label>
	     <?php 
echo input_tag("project-name", "", array("MAXLENGTH" => 44, "size" => 50));
?>
	   <?php 
echo button_to_function("Create", "createProject(); return false;");
?>
	 </div>
	</div>
	
	<div id="project-list">
	 <?php 
include_partial("renderList", array("pager" => $pager));
?>
	</div>
	
  </div>

</div>
/**
 * Returns an html button to a remote action defined by 'url' (using the
 * 'url_for()' format) that's called in the background using XMLHttpRequest.
 *
 * See link_to_remote() for details.
 *
 */
function button_to_remote($name, $options = array(), $html_options = array())
{
    return button_to_function($name, remote_function($options), $html_options);
}
Пример #21
0
echo '&nbsp;&nbsp;';
echo button_to_function(__('save'), "\$('.images_submit').hide(); \$('#images_validate_form').submit()", array('disabled' => 'disabled', 'class' => 'images_submit'));
echo input_hidden_tag('action', 'addtempimages');
echo input_hidden_tag('image_number', 0);
?>
<span id="image_add_str" style="display:none">
<?php 
echo __('add an other image');
?>
</span>
</div>
</form>
</div>
<?php 
echo form_tag('images/jsupload?mod=' . $mod . '&document_id=' . $document_id, array('id' => 'images_validate_form'));
?>
<div>
</div>
<ul id="files_to_upload" class="legacy">
</ul>
<div>
<?php 
echo button_to_function(__('save'), "\$('.images_submit').hide(); \$('#images_validate_form').submit()", array('disabled' => 'disabled', 'class' => 'images_submit'));
?>
</div>
<?php 
$image_upload_js = minify_get_combined_files_url('/static/js/image_upload.js');
echo javascript_queue("\$.ajax({ url: '{$image_upload_js}', dataType: 'script', cache: true }).done(function() {\n  window.setTimeout(C2C.ImageUpload.init, 1000)});");
?>
</form>
  )) ?>
    <?php echo input_hidden_tag('task', 'clear-cache') ?>
    Clear
    <select name="arg[1]">
      <option value="">all cache</option>
      <option value="config">only configuration cache</option>
      <option value="template">only template cache</option>
    </select>
    for application
    <select name="arg[0]">
      <?php foreach($apps as $app): ?>
      <option><?php echo $app ?></option>
      <?php endforeach; ?>
    </select>
    <?php echo submit_tag('execute') ?>
    <?php echo button_to_function('cancel', visual_effect('blind_up', 'clear_selective_cache')) ?>
  </form>
  
</div>

<div id="add_new_module" style="display: none;">
  <?php echo form_remote_tag(array(
    'url'    => 'sfControlPanel/taskExecute',
    'update' => 'feedback',
    'loading' => "Element.addClassName(document.getElementsByTagName('html')[0], 'waiting');",
    'success' => "Element.removeClassName(document.getElementsByTagName('html')[0], 'waiting');".visual_effect('blind_up', 'clear_selective_cache'),
  )) ?>
    create new module
    
    of type
    <select name="task" onChange="if (String(this.value).indexOf('propel') == 0) divdisplay ='block'; else divdisplay ='none'; $('propel_module_models').style.display = divdisplay;">
Пример #23
0
   echo input_hidden_tag('name', $name);
   ?>
       <?php 
   echo input_hidden_tag('type', $type);
   ?>
       <?php 
   echo input_hidden_tag('count', $count);
   ?>
       <?php 
   echo input_tag('new_name', $name);
   ?>
       <?php 
   echo submit_to_remote('rename', __('Rename', array(), 'sfMediaLibrary'), array('url' => 'sfMediaLibrary/rename', 'update' => 'block_' . $count, 'script' => true, 'before' => visual_effect('opacity', 'block_' . $count, array('duration' => '0.5', 'from' => '1.0', 'to' => '0.3')), 'complete' => visual_effect('opacity', 'block_' . $count, array('duration' => '0.5', 'from' => '0.3', 'to' => '1.0'))), 'class=sf_asset_action_rename');
   ?>
         <?php 
   echo button_to_function(__('Cancel', array(), 'sfMediaLibrary'), "Element.hide('edit_" . $count . "');Element.show('view_" . $count . "')");
   ?>
     </form>
   </div>
   <?php 
   echo javascript_tag("Element.hide('edit_" . $count . "');");
   ?>
   <div style="text-align:right">
     <?php 
   echo $size;
   ?>
     <?php 
   echo link_to(image_tag('/sfMediaLibraryPlugin/images/delete.png', array('alt' => __('Delete', array(), 'sfMediaLibrary'), 'title' => __('Delete', array(), 'sfMediaLibrary'), 'align' => 'absmiddle')), 'sfMediaLibrary/' . $delete . '?name=' . $name . '&current_path=' . $current_path, array('confirm' => __('Are you sure to want to delete this ' . $type . '?', array(), 'sfMediaLibrary')));
   ?>
   </div>
 <?php 
Пример #24
0
            </div>
            
        </fieldset>
        
        <!-- Image section end --> 
        </div>
    
    <div class="config-fields">
        <?php 
echo button_to_function('Save', 'save()');
?>
        <?php 
echo input_hidden_tag('save_and_new', 'false');
?>
        <?php 
echo button_to_function('Save and New', 'saveAndNew()');
?>
        
        <?php 
if (!$isNew) {
    ?>
            <?php 
    echo button_to('Delete', 'config/delete?id=' . $config->getId(), array('confirm' => 'Are you sure?'));
    ?>
        <?php 
}
?>
    </div>
        
</div>       
</form>
Пример #25
0
echo input_hidden_tag('page', $sf_params->get('page'));
include_partial($oAppCommon->ssRenderListFileName, array('oAppCommon' => $oAppCommon, 'snCount' => $snCount));
?>
<br />
<div class="menu"><?php 
if ($oAppCommon->ssShowDeleteButton && $snCount > 0) {
    echo button_to_function(__('Delete'), "if(deleteAll(document.frmList,'" . $oAppCommon->ssTitle . "','','" . __("Are you sure, you want to delete selected %sstitle%?", array('%sstitle%' => $oAppCommon->ssTitle)) . "','" . __("Select Atleast One Item") . "'))" . jq_remote_function(array('url' => $oAppCommon->ssLink . (strstr($oAppCommon->ssLink, '?') ? "&" : "?") . "ssAction=delete", 'update' => $oAppCommon->ssDivId, 'with' => 'jQuery(this.form.elements).serialize()')), array('id' => 'delete', 'name' => __("Delete"), 'title' => __('Delete')));
}
?>
</div>
<div class="menu"><?php 
if ($oAppCommon->ssShowCreateButton) {
    echo link_to_function(__('Create'), 'document.frmList.action = "' . url_for($oAppCommon->ssModuleName . "/addEdit") . '";document.frmList.submit();', array('title' => __('Create')));
}
?>

</div>
<!--Shows send Button at bootom  -->
<div class="menu"><?php 
if ($oAppCommon->ssShowSendButton) {
    echo button_to_function(__('Send'), "if(deleteAll(document.frmList,'" . $oAppCommon->ssTitle . "','','" . __("Are you sure, you want to Send Newsletter %sstitle%?", array('%sstitle%' => $oAppCommon->ssTitle)) . "','" . __("Select Atleast One Item") . "'))" . jq_remote_function(array('url' => $oAppCommon->ssLink . (strstr($oAppCommon->ssLink, '?') ? "&" : "?") . "ssAction=send", 'update' => $oAppCommon->ssDivId, 'with' => 'jQuery(this.form.elements).serialize()')), array('id' => 'send', 'name' => __("Send"), 'title' => __('Send')));
}
?>
</div>
<!--End Shows -->
<?php 
if ($oAppCommon->ssButtonMenu && $snCount > 0 || $oAppCommon->ssButtonMenu && $sf_params->get('module') == 'accounthistory' && $sf_params->get('money') == 'In') {
    include_partial('global/buttonMenu');
}
?>
</form>
Пример #26
0
  <div id="content-container" class="box">
  	<div id="now-viewing">
  	    Viewing job #<?php 
echo $job->getId();
?>
 notes
  	    <?php 
echo image_tag("loading.gif", array("id" => "ajax-loading"));
?>
 
  	</div>
  	
  	<div id="revision-list">
  	
  	<?php 
echo button_to_function("View old revision", "diffNotes(" . $job->getId() . ")");
?>
  	
  	 <table class="job-table" width="100%">
  	   <?php 
foreach ($pager->getResults() as $jn) {
    ?>
  	      <tr>
  	       <td><?php 
    echo radiobutton_tag("diff-select", $jn->getId(), false);
    ?>
</td>
  	       <td><?php 
    echo $jn->getRevision();
    ?>
</td>