Exemplo n.º 1
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"))