示例#1
0
<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>
示例#2
0
<?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();
示例#3
0
<?php

$reference_model_column_dd = HTML_UTIL::get_dropdown("reference_model_column", $reference_model_column_list, $reference_model_column, array(), count($reference_model_column_list));
if ($reference_model_column_list) {
    echo $reference_model_column_dd;
} else {
    echo "There are no reference fields";
}
示例#4
0
$data[] = array("Roles: ", HTML_UTIL::dropdown("security_roles", $security_roles, $selected_security_roles, array(), count($security_roles), true));
$data[] = array("URL: ", "/ " . HTML_UTIL::input("controller", $controller, array("placeholder" => "manage", "class" => "dib w200")) . " / " . HTML_UTIL::input("task", $task, array("placeholder" => "user", "class" => "dib w200")));
$data[] = array("Plural URL: ", HTML_UTIL::div("/ " . HTML_UTIL::span("", array("id" => "plural-controller")) . " / " . HTML_UTIL::input("model_plural", "", array("class" => "dib w200")), array("class" => "wsnw")));
$data[] = array('<h3>List Settings</h3>', "");
$data[] = array("Body Type: ", HTML_UTIL::dropdown("list[body]", array("B" => "Full Page", "U" => "Popup", "L" => "Blank", VIEW_GENERATE_LISTVIEW::FORMAT_SKIP => "None")));
$data[] = array("Method: ", HTML_UTIL::radiobuttons("format[list]", array("A" => "Ajax", "P" => "Post"), get_value($format, "list")));
$data[] = array("Options", HTML_UTIL::checkbox("list_options[search_form]", "1", get_value($list_options, "search_form"), array(), "Search Form"));
$data[] = array('<h3>View Settings</h3>', "");
$data[] = array("Body Type: ", HTML_UTIL::dropdown("format[view]", array("P" => "Full Page", "U" => "Popup", "L" => "Blank", VIEW_GENERATE_LISTVIEW::FORMAT_SKIP => "None"), get_value($format, "view")));
$data[] = array("Method: ", HTML_UTIL::radiobuttons("view_settings[method]", array("A" => "Ajax", "P" => "Post"), get_value($view_settings, "method")));
$data[] = array('<h3>Options</h3>', "");
$data[] = array("Frontend: ", HTML_UTIL::dropdown("frameworks", $frameworks, $selected_frameworks, array(), count($frameworks), true));
$data[] = array("Location:", HTML_UTIL::dropdown("location", CMODEL_GENERATOR::get_locations(), "", array("class" => "wa")));
$data[] = array("", HTML_UTIL::get_checkbox("override", "1", $override, array(), "Override"));
$data[] = array("", HTML_UTIL::button("generate", "Generate", array("id" => "generate", "class" => "btn-primary")));
$data[] = array("", HTML_UTIL::div("", array("class" => "pt20")));
$html_table = new HTML_TABLE_UTIL();
$html_table->set_data($data);
$html_table->set_row_id_prefix("row-");
$html_table->set_column_attribute(0, "class", "vat");
$html_table->set_padding(2);
$html_table->set_class("");
$html_table->render();
?>
<script>

$(function() {

	$("input[name='controller']").keyup(function() {
		$("#plural-controller").text($(this).val());
	});
示例#5
0
<?php

$joiner_source_columns_dd = HTML_UTIL::get_dropdown("joiner_source_column", $joiner_columns, $joiner_source_column, array(), 7);
$joiner_reference_columns_dd = HTML_UTIL::get_dropdown("joiner_reference_column", $joiner_columns, $joiner_reference_column, array(), 7);
if ($joiner_columns) {
    echo HTML_UTIL::get_div(HTML_UTIL::div("Source Joiner Field", array("class" => "lbl")) . $joiner_source_columns_dd, array("class" => " pr10"));
    echo HTML_UTIL::get_div(HTML_UTIL::div("Reference Joiner Field", array("class" => "mt15 lbl")) . $joiner_reference_columns_dd, array("class" => ""));
} else {
    echo "There are no joiner fields";
}
示例#6
0
				<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){
示例#7
0
<?php

$source_model_column_dd = HTML_UTIL::get_dropdown("source_model_column", $source_model_column_list, $source_model_column, array(), count($source_model_column_list));
if ($source_model_column_list) {
    echo $source_model_column_dd;
} else {
    echo "There are no source fields";
}
示例#8
0
<?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();
示例#9
0
<?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();
示例#10
0
<h1>Model Creation</h1>
<form id="form-model">
<?php 
$model_type_list = HTML_UTIL::get_checkboxes("model_types", array("c" => "Complex", "h" => "Handler"), $model_types, array());
$data[] = array("Model Type", $model_type_list);
$data[] = array("Model", HTML_UTIL::get_input("model", $model, array("style" => "width:300px")));
$data[] = array("Extends Model", HTML_UTIL::get_input("extends", $extends, array("style" => "width:300px")));
$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::link("javascript:;", "Generate", array("class" => "btn btn-primary", "id" => "generate")));
$db_table = HTML_TABLE_UTIL::create()->set_data($data)->set_padding(3)->set_class("");
$tablename_dd_count = count($tablename_list);
$tablename_dd = HTML_UTIL::dropdown("tablename", $tablename_list, $tablename, array("onKeyUp" => "update_class_name(this)", "onChange" => "update_class_name(this)", "size" => 30), $tablename_dd_count);
HTML_TABLE_UTIL::create()->set_data(array(array("Table Name: ", $tablename_dd, $db_table->get_html())))->set_default_column_attribute("class", "vat")->set_padding(3)->set_class("")->render();
?>
</form>

<script>
	function update_class_name(obj) {
		$("#model").val(get_singular($(obj).val()));
	
		update_links($(obj).val(),get_singular($(obj).val()));
	}

	$("input[name='model']").on("input",function() {
		update_links("",$(this).val());
	});

	$("#generate").click(function() {
		$.post("/generate/domodel",$("#form-model").serializeArray(),function(response) {
示例#11
0
	<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");
示例#12
0
<h1>Complex Model</h1>
<form id="form-cmodel">

	<div class="fl w300 pr20">
		<h3>C-Models</h3>
		<?php 
echo HTML_UTIL::dropdown("cmodel", $cmodels, $model, array("size" => 30), count($cmodels));
?>
	</div>
	<div>
		<h3>Addons</h3>

		<?php 
$db_table = FORM_UTIL::create()->checkboxes("types", "Type", array("image" => "Image"))->custom(HTML_UTIL::h4("Image"), array("class" => "row-image"))->input("image[name]", "Name", "", array("placeholder" => "ie. avatar", "class" => "row-image w400"))->input("image[sizes]", "Sizes", "tiny:s25,small:s100,medium:s300,large:600,actual", array("placeholder" => "ie. tiny:s25,small:s100,medium:s300,large:600,actual", "class" => "row-image w400"))->input("image[path]", "Path", "", array("placeholder" => "ie. us/av", "class" => "row-image w400"));
?>
	
		<?php 
echo $db_table->button("generate", "Generate", array("type" => "button"))->render();
?>
	</div>

</form>

<script>

	
	$(function() {
		$(".row-image").parents("tr").hide();

		$("input[name='types[]']").click(function() {
			if($(this).is(":checked"))
示例#13
0
	</div>
	
	<?php 
echo HTML_UTIL::get_textarea("crt", "", array("id" => "crt", "class" => "w600 h400"));
?>
	
</div>


<h3 class="mt15 mb5">P12</h3>

<div class="pt10 cb">

	<div class="pt5">
		P12 Password: <?php 
echo HTML_UTIL::input("p12-password", "");
?>
 
		<a href="javascript:;" data-type="p12" class="download btn">Download P12</a>
	</div>

</div>


<script>

	$(function() {

		$(".generate").click(function() {
			
			$.post("/utility/docsr/action:generate-" + $(this).data("type"),
示例#14
0
<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");