<?php
/**
 * Project:        M.VuiZ.Net
 * Author:         nampt.me <admin@vuiz.net>
 * Copyright:      © 2025 vuiz.net All rights reserved.
 */

$key = 'Tạo Logo Tết Đinh Dậu 2017';
echo '<h2 class="phdr">'.$key.'</h2>';
echo '<div class="list1"><center><img src="view.php?text='.(isset($_POST['text']) ? ''.htmlentities($_POST['text']).'':'VuiZ.Net').'&color='.(isset($_POST['color']) ? ''.htmlentities($_POST['color']).'':'3').'&font='.(isset($_POST['font']) ? ''.htmlentities($_POST['font']).'':'1').'" width="230" height="auto" alt="logo" /><br><a href ="view.php?text='.(isset($_POST['text']) ? ''.htmlentities($_POST['text']).'':'VuiZ.Net').'&color='.(isset($_POST['color']) ? ''.htmlentities($_POST['color']).'':'3').'&font='.(isset($_POST['font']) ? ''.htmlentities($_POST['font']).'':'1').'" />[Tải về]</a></center> ';
echo '<br/><form method="post">Nội dung:<br/><input type="text" name="text" value="'.(isset($_POST['text']) ? ''.htmlentities($_POST['text']).'':'VuiZ.Net').'" /><br/><input type="radio" name="color" value="1" '.(isset($_POST['color']) && $_POST['color'] == 1 ? 'checked="checked"':'').' /> Màu trắng<br/><input type="radio" name="color" value="2" '.(empty($_POST['color']) || (isset($_POST['color']) && $_POST['color'] == 2) ? 'checked="checked"':'').' /> Màu Đỏ<br/><input type="radio" name="color" value="3" '.(isset($_POST['color']) && $_POST['color'] == 3 ? 'checked="checked"':'').' /> Màu xanh<br/>
Phông chữ: <img src="preview.php?font=1" width="168" alt="" id="font" style="vertical-align:middle;" /><br />';
echo "<script type=\"text/javascript\">
//<![CDATA[
function update_font(newimage){document.getElementById('font').src='preview.php?font='+newimage+'';}
//]]>
</script>";
echo '
<select name="font" onchange="update_font(this.options[selectedIndex].value);"><option value="1">Hoa Đào</option><option value="2=">Hán Việt</option></select><br>
<input type="submit" value="Tạo" /></div></form>';

?>