コード例 #1
0
ファイル: add-image-to-article.php プロジェクト: hshoghi/cms
<?php 
    snippet::radio(array('name' => 'image', 'radio_id' => 'image_vertical', 'multi_label' => 'Partial Width (' . $partial_width . 'px)'));
    ?>
			<input type = "hidden" value = "<?php 
    echo $partial_width;
    ?>
" name = "insert_width" class = "insert_width" />
			<input type = "hidden" value = "5555" name = "insert_height" class = "insert_height" />
			<input type = "hidden" name = "crop" value = "0" class = "insert_crop" />
		</div>	
<?php 
}
?>
		<div class = "field">
<?php 
snippet::radio(array('name' => 'image', 'radio_id' => 'image_custom', 'multi_label' => 'Custom', 'onclick' => "\$('#insert_width').select()", 'checked' => false));
?>
	
				<input type = "text" name = "insert_width" class = "insert_width" onclick = "$('#image_custom').attr('checked','checked')"/>
				x
				<input type = "text" name = "insert_height" class = "insert_height" onclick = "$('#image_custom').attr('checked','checked')"/> *
			<div class = "legend">* Leave blank for full size</div>
			<input type = "hidden" name = "crop" value = "0" class = "insert_crop" />
		</div>
		<div class = "field">
			<hr/>
			<center>
				<input type = "button" onclick = "insert_image(this)" value = "Insert" />
			</center>
		</div>
	</div>