echo input_hidden_tag('current_path', $current_path);
 ?>
     <?php 
 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')));
</td>
	    <td><?php 
echo $itemForm['imp_neto'];
?>
</td>
	    <td><?php 
echo $itemForm['imp_liquidado'];
?>
</td>
	    <td><?php 
echo $itemForm['imp_liquidado_rni'];
?>
</td>
	    <td><?php 
echo $itemForm['imp_operaciones_ex'];
?>
</td>
	  </tr>
	</tbody>
    <tfoot>
      <tr>
        <td colspan="2">
              <?php 
echo submit_to_remote('envio_ajax', 'Anadir con Ajax', array('update' => 'lista_elementos', 'url' => 'comprobante/addItem'));
?>
        </td>
      </tr>
    </tfoot>
  </table>
</form>
</div>
Exemple #3
0
<?php

use_helper('Javascript');
?>
  

 <?php 
echo input_auto_complete_tag('txt_cuenta', '', 'cuenta/autocompletar', array('autocomplete' => 'off'), array('use_style' => true));
?>

<?php 
echo submit_to_remote('ajax_submit', 'Buscar cuenta', array('update' => 'item_list', 'url' => 'alumno/buscar'));
?>
<div id="item_list"></div>
Exemple #4
0
<?php

use_helper('Javascript');
?>
<span class="invite_box">

<span id="invite_link">
  <strong><a href="javascript:void(0);" onclick="showForm();">invite friends!</a></strong>
</span>
<span id="invite_form" class="invite_form" style="display: none">
<form style="display: inline;">
Email: 
<?php 
echo input_tag('email', '', array('size' => '15', 'onkeypress' => 'return event.keyCode!=13'));
?>
       
<?php 
echo submit_to_remote('invite_submit', 'Invite', array('update' => 'invite_result', 'url' => 'home/invite'), array('class' => 'button_small'));
?>

</span>
</form>
<span id="invite_result" class="invite_result">
</span>
</span>

<?php 
echo javascript_tag("\n\nfunction showForm()\n{\n  document.getElementById('invite_link').style.display = 'none';\n  document.getElementById('invite_form').style.display = 'inline';\n}\n\n\n");
?>

				    <input type='radio' name='term' id='radioSummer' value='5'><label for='radioSummer'>Summer</label>
				</td>
			</tr>
		</table>
		<p style="text-align:left; margin:5px 0 3px 5px">My comment:</p>
		<textarea style="display:none" name="my_comment"></textarea>
		<textarea cols="39" rows="6" name="pseudo_comment"></textarea>
		<table style="margin-top:5px">
			<tr>
				<td></td>
				<td><img src="<?php 
echo url_for("invisible/currentSecurityImage");
?>
" /></td>
			</tr>
			<tr>
				<td>Security string:</td>
				<td><input type='text' name='security' /></td>
			</tr>
		</table><br />
		<div id="commentInputBtns">
			<?php 
echo submit_to_remote('commentSubmit', 'Submit', array('loading' => 'document.getElementById("commentSubmissionStatus").innerHTML="Please wait..."', 'update' => 'commentSubmissionStatus', 'script' => true, 'url' => 'course/ajaxCommentSubmission?id=' . $courseObj->getId()), array('style' => 'display:none', 'id' => 'commentSubmitBtn'));
?>
			<input type="button" value="Submit" onclick="preCommentSubmit()" />
			<input type="button" value="Cancel" onclick="cancelCommentSubmission()" />
		</div>
		<div id="commentSuccessBtns" style="display:none"><input type='button' onclick='cancelCommentSubmission()' value='Close'/></div>
		<div id="commentSubmissionStatus" style="padding-top:7px"></div>
	</form>
</div>
<?php 
} else {
    ?>

      <div id="org_link" style="display: none;"></div>
      <div id="org_search">
      
<?php 
}
?>
      
        <?php 
echo input_tag('org_terms', $sf_request->getParameter('org_terms'), 'id=org_input');
?>
        <?php 
echo submit_to_remote('org_submit', 'Find', array('update' => 'org_results', 'url' => 'operation/findOrg'), array('class' => 'button_small'));
?>
        <br />
        <br />
        <div id="org_results"></div>      
      </div>
    </td>
  </tr>
  
   <tr>
    <td>
    </td>
    <td style="padding-bottom:.6em">
      <span class="form_help" ><em>Select a relationship category and description (must already exist in db) if you've selected an org</em></span>
    </td>
		
		<?php 
echo submit_to_remote('ajax_get_criteria', 'Search', array('update' => 'tmp_mapping_updater', 'url' => 'adminratingCriteria/ajaxFindCriteria', 'script' => true), array('id' => 'ajax_get_criteria', 'class' => 'hidden'));
?>
		
		<?php 
echo submit_to_remote('ajax_get_scales', 'Search', array('update' => 'tmp_mapping_updater', 'url' => 'adminratingCriteria/ajaxFindScales', 'script' => true), array('id' => 'ajax_get_scales', 'class' => 'hidden'));
?>
		  
		<?php 
echo submit_to_remote('ajax_get_validation', 'Search', array('update' => 'tmp_mapping_updater', 'url' => 'adminratingCriteria/ajaxFetchValidationRequirements', 'script' => true), array('id' => 'ajax_get_validation', 'class' => 'hidden'));
?>
		  
		<?php 
echo submit_to_remote('ajax_save_mappings', 'Search', array('update' => 'tmp_mapping_updater', 'url' => 'adminratingCriteria/ajaxSaveMappings', 'script' => true), array('id' => 'ajax_save_mappings', 'class' => 'hidden'));
?>
		  
		<?php 
echo submit_to_remote('ajax_del_mapping', 'Search', array('update' => 'tmp_mapping_updater', 'url' => 'adminratingCriteria/ajaxDeleteLastMapping', 'script' => true), array('id' => 'ajax_del_mapping', 'class' => 'hidden'));
?>
		
		<div class="hidden" id="tmp_mapping_updater"></div>
		
		<input type="hidden" id="mapping_save_descr" name="mapping_save_descr" />
		<input type="hidden" id="mapping_save_col" name="mapping_save_col" />
		<input type="hidden" id="mapping_save_type_descr" name="mapping_save_type_descr" />
		<input type="hidden" id="mapping_save_scale" name="mapping_save_scale" />
	</fieldset>

</form>
</div></div>
Exemple #8
0
    if (isset($namespace) && $namespace != null) {
        ?>
      <?php 
        echo input_hidden_tag('sf_comment_namespace', $namespace);
        ?>
    <?php 
    }
    ?>

    <?php 
    if ($config['use_ajax']) {
        ?>
      <div id="sf_comment_ajax_indicator" style="display: none">&nbsp;</div>
      <div style="text-align:right;">
      <?php 
        echo submit_to_remote('sf_comment_ajax_submit', __('Post comment'), array('update' => array('success' => 'sf_comment_list', 'failure' => 'sf_comment_form'), 'url' => 'sfComment/' . $action, 'loading' => "Element.show('sf_comment_ajax_indicator')", 'complete' => "Element.hide('sf_comment_ajax_indicator');Element.scrollTo('sf_comment_list');Element.hide('sf_comment_form');", 'script' => true), array('class' => 'submit'));
        ?>
      </div>
      <noscript>
          <?php 
        echo submit_tag(__('Post comment'), array('class' => 'submit'));
        ?>
      </noscript>
    <?php 
    } else {
        ?>
      <?php 
        echo submit_tag(__('Post comment without JS'), array('class' => 'btn'));
        ?>
    <?php 
    }
}
?>
<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> 
} else {
    ?>

      <div id="<?php 
    echo $name;
    ?>
_link" style="display: none;"></div>
      <div id="<?php 
    echo $name;
    ?>
_search">

<?php 
}
?>

        <?php 
echo input_tag(strtolower($relation_name) . '_terms', $sf_request->getParameter(strtolower($relation_name) . '_terms'), 'id=' . $name . '_input');
?>
        <?php 
echo submit_to_remote($name . '_submit', 'Find', array('update' => $name . '_results', 'url' => 'relationship/findEntity?entity_field=' . $relation_name), array('class' => 'button_small'));
?>
        <br />
        <br />
        <div id="<?php 
echo $name;
?>
_results"></div>      
      </div>
    </td>
  </tr>
Exemple #11
0
        echo $assocData[$i . $j];
        ?>
" />
				<?php 
    }
    ?>
	      		<?php 
}
?>
			
				<div id='instrAssocChooser' onmouseover='mcancelclosetime()' onmouseout='mclosetime()'>
	      			<table class="inputlayout">
	      				<tr>
	      					<td>Search Courses: <input type="text" onkeydown="return course_search(event)" name="ajax_query" />
	      					<?php 
echo submit_to_remote('ajax_search', 'Search', array('update' => 'ajax_search_results', 'url' => 'admincourse/ajaxSearch'), array('id' => 'ajax_search'));
?>
	      					</td>
	      				</tr>
	      				<tr>
	      					<td><i>Click on the results to add them.</i></td>
	      				</tr>
	      				<tr><td><ul id="ajax_search_results"></ul></td>
	      				</tr>
	      			</table>
	      		</div>
	      		<fieldset style="width:100%" onmouseover='mopen("instrAssocChooser", 1)' onmouseout='mclosetime()'>
	      			<legend style='font-size:10pt'>Associated Courses</legend>
	      			<table class="inputlayout" style="width:100%">
	      				<tr>
	      					<td>Year: