Add more point options

This commit is contained in:
Kijin Sung 2018-01-31 18:36:46 +09:00
parent bbba3d013e
commit 78aebbf77f
6 changed files with 130 additions and 33 deletions

View file

@ -53,6 +53,24 @@
<input type="number" name="read_document" value="{$config->read_document}" id="read_document" style="text-align:right" /> :
<label for="read_document" class="x_inline">{$lang->point_read_document}</label>
<br />
<input type="number" name="voter" value="{$config->voter}" style="text-align:right" id="voter" /> :
<label for="voter" class="x_inline">{$lang->point_voter}</label>
<br />
<input type="number" name="blamer" value="{$config->blamer}" id="blamer" style="text-align:right" /> :
<label for="blamer" class="x_inline">{$lang->point_blamer}</label>
<br />
<input type="number" name="voter_comment" value="{$config->voter_comment}" style="text-align:right" id="voter_comment" /> :
<label for="voter_comment" class="x_inline">{$lang->point_voter_comment}</label>
<br />
<input type="number" name="blamer_comment" value="{$config->blamer_comment}" id="blamer_comment" style="text-align:right" /> :
<label for="blamer_comment" class="x_inline">{$lang->point_blamer_comment}</label>
<br />
<input type="number" name="download_file_author" value="{$config->download_file_author}" id="download_file_author" style="text-align:right" /> :
<label for="download_file_author" class="x_inline">{$lang->point_download_file_author}</label>
<br />
<input type="number" name="read_document_author" value="{$config->read_document_author}" id="read_document_author" style="text-align:right" /> :
<label for="read_document_author" class="x_inline">{$lang->point_read_document_author}</label>
<br />
<input type="number" name="voted" value="{$config->voted}" style="text-align:right" id="voted" /> :
<label for="voted" class="x_inline">{$lang->point_voted}</label>
<br />
@ -60,10 +78,10 @@
<label for="blamed" class="x_inline">{$lang->point_blamed}</label>
<br />
<input type="number" name="voted_comment" value="{$config->voted_comment}" style="text-align:right" id="voted_comment" /> :
<label for="voted_comment" class="x_inline">{$lang->comment} {$lang->point_voted}</label>
<label for="voted_comment" class="x_inline">{$lang->point_voted_comment}</label>
<br />
<input type="number" name="blamed_comment" value="{$config->blamed_comment}" id="blamed_comment" style="text-align:right" /> :
<label for="blamed_comment" class="x_inline">{$lang->comment} {$lang->point_blamed}</label>
<label for="blamed_comment" class="x_inline">{$lang->point_blamed_comment}</label>
</div>
</div>
<div class="x_control-group">

View file

@ -16,24 +16,36 @@
<th scope="col">{$lang->point_upload_file}</th>
<th scope="col">{$lang->point_download_file}</th>
<th scope="col">{$lang->point_read_document}</th>
<th scope="col">{$lang->point_voter}</th>
<th scope="col">{$lang->point_blamer}</th>
<th scope="col">{$lang->point_voter_comment}</th>
<th scope="col">{$lang->point_blamer_comment}</th>
<th scope="col">{$lang->point_download_file_author}</th>
<th scope="col">{$lang->point_read_document_author}</th>
<th scope="col">{$lang->point_voted}</th>
<th scope="col">{$lang->point_blamed}</th>
<th scope="col">{$lang->comment} {$lang->point_voted}</th>
<th scope="col">{$lang->comment} {$lang->point_blamed}</th>
<th scope="col">{$lang->point_voted_comment}</th>
<th scope="col">{$lang->point_blamed_comment}</th>
</tr>
</thead>
<tbody>
<tr loop="$mid_list => $key,$val">
<th scope="row">{$val->browser_title}({$val->mid})</th>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="insert_document[{$val->module_srl}]" value="{$module_config[$val->module_srl]['insert_document']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="insert_comment[{$val->module_srl}]" value="{$module_config[$val->module_srl]['insert_comment']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="upload_file[{$val->module_srl}]" value="{$module_config[$val->module_srl]['upload_file']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="download_file[{$val->module_srl}]" value="{$module_config[$val->module_srl]['download_file']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="read_document[{$val->module_srl}]" value="{$module_config[$val->module_srl]['read_document']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="voted[{$val->module_srl}]" value="{$module_config[$val->module_srl]['voted']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="blamed[{$val->module_srl}]" value="{$module_config[$val->module_srl]['blamed']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="voted_comment[{$val->module_srl}]" value="{$module_config[$val->module_srl]['voted_comment']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="blamed_comment[{$val->module_srl}]" value="{$module_config[$val->module_srl]['blamed_comment']}" title="{$config->point_name}" /> {$config->point_name}</td>
<th scope="row" style="min-width:100px">{$val->browser_title}<br /><span style="font-size:11px;font-weight:normal">({$val->mid})</span></th>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="insert_document[{$val->module_srl}]" value="{$module_config[$val->module_srl]['insert_document']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="insert_comment[{$val->module_srl}]" value="{$module_config[$val->module_srl]['insert_comment']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="upload_file[{$val->module_srl}]" value="{$module_config[$val->module_srl]['upload_file']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="download_file[{$val->module_srl}]" value="{$module_config[$val->module_srl]['download_file']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="read_document[{$val->module_srl}]" value="{$module_config[$val->module_srl]['read_document']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="voter[{$val->module_srl}]" value="{$module_config[$val->module_srl]['voter']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="blamer[{$val->module_srl}]" value="{$module_config[$val->module_srl]['blamer']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="voter_comment[{$val->module_srl}]" value="{$module_config[$val->module_srl]['voter_comment']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="blamer_comment[{$val->module_srl}]" value="{$module_config[$val->module_srl]['blamer_comment']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="download_file_author[{$val->module_srl}]" value="{$module_config[$val->module_srl]['download_file_author']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="read_document_author[{$val->module_srl}]" value="{$module_config[$val->module_srl]['read_document_author']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="voted[{$val->module_srl}]" value="{$module_config[$val->module_srl]['voted']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="blamed[{$val->module_srl}]" value="{$module_config[$val->module_srl]['blamed']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="voted_comment[{$val->module_srl}]" value="{$module_config[$val->module_srl]['voted_comment']}" title="{$config->point_name}" /></td>
<td class="nowr"><input type="number" style="width:40px;text-align:right" name="blamed_comment[{$val->module_srl}]" value="{$module_config[$val->module_srl]['blamed_comment']}" title="{$config->point_name}" /></td>
</tr>
</tbody>
</table>

View file

@ -38,6 +38,42 @@
<input type="number" name="read_document" id="read_document" value="{$module_config['read_document']}" /> {$module_config['point_name']}
</div>
</div>
<div class="x_control-group">
<label for="voter" class="x_control-label">{$lang->point_voter}</label>
<div class="x_controls">
<input type="number" name="voter" id="voter" value="{$module_config['voter']}" /> {$module_config['point_name']}
</div>
</div>
<div class="x_control-group">
<label for="blamer" class="x_control-label">{$lang->point_blamer}</label>
<div class="x_controls">
<input type="number" name="blamer" id="blamer" value="{$module_config['blamer']}" /> {$module_config['point_name']}
</div>
</div>
<div class="x_control-group">
<label for="voter_comment" class="x_control-label">{$lang->point_voter_comment}</label>
<div class="x_controls">
<input type="number" name="voter_comment" id="voter_comment" value="{$module_config['voter_comment']}" /> {$module_config['point_name']}
</div>
</div>
<div class="x_control-group">
<label for="blamer_comment" class="x_control-label">{$lang->point_blamer_comment}</label>
<div class="x_controls">
<input type="number" name="blamer_comment" id="blamer_comment" value="{$module_config['blamer_comment']}" /> {$module_config['point_name']}
</div>
</div>
<div class="x_control-group">
<label for="download_file_author" class="x_control-label">{$lang->point_download_file_author}</label>
<div class="x_controls">
<input type="number" name="download_file_author" id="download_file_author" value="{$module_config['download_file_author']}" /> {$module_config['point_name']}
</div>
</div>
<div class="x_control-group">
<label for="read_document_author" class="x_control-label">{$lang->point_read_document_author}</label>
<div class="x_controls">
<input type="number" name="read_document_author" id="read_document_author" value="{$module_config['read_document_author']}" /> {$module_config['point_name']}
</div>
</div>
<div class="x_control-group">
<label for="voted" class="x_control-label">{$lang->point_voted}</label>
<div class="x_controls">
@ -51,13 +87,13 @@
</div>
</div>
<div class="x_control-group">
<label for="voted_comment" class="x_control-label">{$lang->comment} {$lang->point_voted}</label>
<label for="voted_comment" class="x_control-label">{$lang->point_voted_comment}</label>
<div class="x_controls">
<input type="number" name="voted_comment" id="voted_comment" value="{$module_config['voted_comment']}" /> {$module_config['point_name']}
</div>
</div>
<div class="x_control-group">
<label for="blamed_comment" class="x_control-label">{$lang->comment} {$lang->point_blamed}</label>
<label for="blamed_comment" class="x_control-label">{$lang->point_blamed_comment}</label>
<div class="x_controls">
<input type="number" name="blamed_comment" id="blamed_comment" value="{$module_config['blamed_comment']}" /> {$module_config['point_name']}
</div>