Yii Framework
Yii Framework
Yii Framework
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
22<br />
การก าหนดขนาด Textbox<br />
การก าหนดขนาด Textbox เป็นการก าหนดขนาดความกว้างของ Textbox และปริมาณของ<br />
ตัวอักษรที่ใส่ใน Textbox โดยการก าหนดขนาดนั้นจะก าหนดความกว้าง คือ size และจ านวน<br />
ตัวอักษรที่รับคือ maxlength ซึ่งการก าหนดค่าได้แสดงดังรูปที่ 7-6<br />
การสร้าง Radio Button<br />
รูปที่ 7-6 การก าหนดขนาด Textbox<br />
ที่ไดเรคทอรี่ www/<strong>Yii</strong>Training/protected/views/userDetail/_form.php ก าหนดรูปแบบการ<br />
แสดงผลของ gender จาก Textbox เป็น Radio Button ดังรูปที่ 7-7<br />
รูปที่ 7-7 การก าหนด Radio Button<br />
เมื่อก าหนดรูปแบบการแสดงแบบฟอร์มเป็นที่เรียบร้อยแล้วสามารถ ดูรูปแบบการแสดง<br />
ผลได้ที่ http://localhost/<strong>Yii</strong>Training/index.php/userdetail/create ซึ่งมีรูปแบบการแสดงผล ดังรูปที่<br />
7-8