[Mr.P]
New member
Tác giả: Reid
Preview:
=========
Vào AdminCP => Website Maker => Create New Webpage
Page ID: ví dụ: ykien
Page Title: ví du: Gửi ý kiến
Link to this page in the board menu? => chọn Yes
Page Content: Các bạn cho code sau vào:
Lưu Ý: Nên save:
========
Các bạn thiết lập ở đoạn code này:
enable_guests: false, => không cho khách dùng
+++
pm: {
enabled: false, // Does not work for guests
user: "Reid", // 1 user only => tên thành viên nhận thư, ví dụ như admin, mod,...
title: "New Form From {{user_name}}",
content: "{{form}}"
},
+++
topic: {
enabled: true, => Thư gửi sẽ được tạo thành 1 topic
forum_id: 3170924, // 1 id only => ID forum
title: "New Form From {{user_name}}",
description: "",
content: "{{form}}"
},
Preview:

=========
Vào AdminCP => Website Maker => Create New Webpage
Page ID: ví dụ: ykien
Page Title: ví du: Gửi ý kiến
Link to this page in the board menu? => chọn Yes
Page Content: Các bạn cho code sau vào:
Mã:
<form id='generic_form'>
<div class='category'>
<table class='cat_head'>
<tr>
<td><h2 style='text-align:center'>Generic Form</h2></td>
</tr>
</table>
</div>
<table>
<tr>
<td> </td>
</tr>
</table>
<table id='form_spec'>
<tr>
<th colspan='2'><h2>Please fill out the fields below:</h2></th>
</tr>
<tr>
<td>Name:</td>
<td><input type='text' /></td>
</tr>
<tr>
<td>Age:</td>
<td><input type='text' /></td>
</tr>
<tr>
<td>Gender:</td>
<td>
<select>
<option>Male</option>
<option>Female</option>
<option>Neither/not sure</option>
</select>
</td>
</tr>
<tr>
<td>Why do you think cheese is awesome?</td>
<td><textarea rows='3'></textarea></td>
</tr>
<tr>
<td colspan='2' id='send_form'><button type='submit'>Submit</button></td>
</tr>
</table>
</form>
<style type='text/css'>
/* <![CDATA[ */
#form_spec tr td:first-child {
font-weight: bold;
width: 30%;
}
#form_spec input, #form_spec textarea {
width: 500px;
}
/* ]]> */
</style>
<script type='text/javascript'>
var form_script = {
form_id: $('#generic_form'),
status_id: $('#send_form'),
specific_id: $('#form_spec'),
enable_guests: false,
pm: {
enabled: false, // Does not work for guests
user: "Reid", // 1 user only
title: "New Form From {{user_name}}",
content: "{{form}}"
},
topic: {
enabled: true,
forum_id: 3170924, // 1 id only
title: "New Form From {{user_name}}",
description: "",
content: "{{form}}"
},
statuses: {
not_logged_in: "You must be registered and signed in to use this feature.", // Used if enable_guests: false
first: "Coagulating data...",
second: "Sending form...",
done: "Form sent!"
},
submission_formatting: {
separator: ' ',
before_all: '',
after_all: '',
before_question: '[b]',
after_question: '[/b]',
before_response: '[i]',
after_response: '[/i]'
},
possible_elements: 'input, textarea, select' // For the second column of table; .val() must work on it
};
</script>
<script type='text/javascript' src='http://z3.ifrm.com/313/104/0/p366373/form_script.js'></script>
You must be registered for see links
về và up lên host của mình.========
Các bạn thiết lập ở đoạn code này:
enable_guests: false, => không cho khách dùng
+++
pm: {
enabled: false, // Does not work for guests
user: "Reid", // 1 user only => tên thành viên nhận thư, ví dụ như admin, mod,...
title: "New Form From {{user_name}}",
content: "{{form}}"
},
+++
topic: {
enabled: true, => Thư gửi sẽ được tạo thành 1 topic
forum_id: 3170924, // 1 id only => ID forum
title: "New Form From {{user_name}}",
description: "",
content: "{{form}}"
},