コード例 #1
0
ファイル: component_mvc.php プロジェクト: Firestitch/utility
<?php

$view_types = array(VIEW::TYPE_BODY => "Body", VIEW::TYPE_POPUP => "Popup", VIEW::TYPE_BLANK => "Blank", VIEW::TYPE_COMPONENT => "Component");
if ($is_mva_component) {
    $data[] = array("MVA Components", HTML_UTIL::get_checkboxes("mva_components", array("V" => "View", "A" => "Action"), $mva_components));
}
$task_name_div = HTML_UTIL::get_div("", array("id" => "task_name"));
$data[] = array("ACL Roles", HTML_UTIL::dropdown("security_roles", $security_roles, $selected_security_roles, array("class" => "w100p"), count($security_roles), true));
if ($show_view_type) {
    $data[] = array("Type", HTML_UTIL::dropdown("view_type", $view_types, $view_type, array("class" => "w100p")));
}
$data[] = array("Controller", HTML_UTIL::input("controller", $controller, array("class" => "w100p")));
$data[] = array($task_name_div, HTML_UTIL::input("task", $task, array("class" => "w100p")));
$data[] = array("Location", HTML_UTIL::dropdown("location", CMODEL_GENERATOR::get_locations(), "", array("class" => "wa")));
$data[] = array("", HTML_UTIL::get_checkbox("override", "1", $override, [], "Override"));
$data[] = array("", HTML_UTIL::get_button("cmd_generate", "Generate", array("class" => "btn-primary")));
$html_table = new HTML_TABLE_UTIL();
$html_table->set_data($data);
$html_table->set_row_id_prefix("row-");
$html_table->set_column_attribute(0, "width", 120);
$html_table->set_padding(2);
$html_table->set_class("");
$html_table->render();
コード例 #2
0
ファイル: tcpdffont.php プロジェクト: Firestitch/utility
<table>

	<tr>
		<td>Font File</td>
		<td><?php 
echo HTML_UTIL::get_filefield("file");
?>
</td>
	</tr>

	<tr>
		<td></td>
		<td><?php 
echo HTML_UTIL::get_button("submit", "Submit");
?>
</td>
	</tr>	
</table>
コード例 #3
0
ファイル: payment.php プロジェクト: Firestitch/utility
				<td>
					<?php 
echo HTML_UTIL::get_input("snd[amount]", null, array("class" => "w600"));
?>
				</td>
			</tr>
		</tbody>

		<tr>
			<td>

			</td>

			<td>
				<?php 
echo HTML_UTIL::get_button("process", "Process", array("type" => "button"));
?>
			</td>		
		</tr>	
	</table>
	<div id="spinner"></div>
	<script>

	$(function() {

		$("input[name='process']").click(function() {
			$("#messages").html('');
			$("#spinner").spin();
			ty = $("#type").val();

			$.post("/utility/dopayment",$("form").serializeArray(),function(response){
コード例 #4
0
ファイル: form.php プロジェクト: Firestitch/utility
<?php

$data[] = array("Page Number:", HTML_UTIL::get_input("page_number", $page_number, array("style" => "width:50px")));
$data[] = array("Excel File:", HTML_UTIL::get_filefield("excel_file"));
$data[] = array("", HTML_UTIL::get_button("cmd_generate", "Generate"));
$html_table = new HTML_TABLE_UTIL();
$html_table->set_data($data);
$html_table->render();
コード例 #5
0
ファイル: class.php プロジェクト: Firestitch/utility
<?php

$table_data = array();
$table_data[] = array(HTML_UTIL::get_radiobuttons("format", array("P" => "PHP", "J" => "JavaScript"), $format));
$table_data[] = array(HTML_UTIL::get_textarea("fields", $fields, array("style" => "width:500px;height:100px")));
$table_data[] = array("A list of fields seperated by commas");
$table_data[] = array(HTML_UTIL::get_button("cmd_generate", "Generate"));
if ($class) {
    echo "<pre>" . $class . "</pre>";
}
$html_table = new HTML_TABLE_UTIL();
$html_table->set_data($table_data);
$html_table->render();
コード例 #6
0
ファイル: modelrelation.php プロジェクト: Firestitch/utility
	<h3>Reference Model</h3>
	<div class="fl">
		<div class="lbl">Model</div>	
		<?php 
echo HTML_UTIL::dropdown("reference_model", $model_list, $reference_model, array(), 15);
?>
	</div>

	<div class="fl ml20">
		<div class="lbl">Model Field</div>	
		<div id="reference_fields"></div>
	</div>
</div>

<div class="cb pt30"><?php 
echo HTML_UTIL::get_button("generate", "Generate", array("class" => "btn-primary"));
?>
</div>
<script>
		
	$(function() {
				
		$("select[name='source_model']").bind("click keyup",function() {
			$("#source_fields").load("/generate/sourcefields/",{ source_model: $(this).val(), source_model_column: "<?php 
echo $source_model_column;
?>
" });
		});

		if($("select[name='source_model'] option:selected").length)
			$("select[name='source_model']").trigger("click");
コード例 #7
0
ファイル: browser.php プロジェクト: Firestitch/utility
<h2>Agent Browser Lookup</h2>

Agent: <?php 
echo HTML_UTIL::get_input("agent", $agent, array("class" => "w600"));
?>
 <?php 
echo HTML_UTIL::get_button("save", "Lookup");