saimod vote
This commit is contained in:
parent
76b4b262ae
commit
96b8d22608
@ -15,7 +15,12 @@ class saimod_mojotrollz_vote extends \SYSTEM\SAI\sai_module {
|
|||||||
$vars['content'] .= \SYSTEM\PAGE\replace::replaceFile((new \PSAI('saimod_mojotrollz_vote/tpl/list_entry.tpl'))->SERVERPATH(), $r);}
|
$vars['content'] .= \SYSTEM\PAGE\replace::replaceFile((new \PSAI('saimod_mojotrollz_vote/tpl/list_entry.tpl'))->SERVERPATH(), $r);}
|
||||||
$vars = array_merge($vars, \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_TIME),\SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_BASIC));
|
$vars = array_merge($vars, \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_TIME),\SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_BASIC));
|
||||||
return \SYSTEM\PAGE\replace::replaceFile((new \PSAI('saimod_mojotrollz_vote/tpl/saimod_mojotrollz_vote.tpl'))->SERVERPATH(),$vars);}
|
return \SYSTEM\PAGE\replace::replaceFile((new \PSAI('saimod_mojotrollz_vote/tpl/saimod_mojotrollz_vote.tpl'))->SERVERPATH(),$vars);}
|
||||||
public static function html_li_menu(){return '<li><a id="menu_mojotrollz_vote" data-toggle="tooltip" data-placement="left" title="Vote Servers" href="#!mojotrollz_vote"><span class="glyphicon glyphicon-stats" aria-hidden="true"></span> Vote Servers</a></li>';}
|
public static function menu(){
|
||||||
|
return new \SYSTEM\SAI\sai_module_menu( 100,
|
||||||
|
\SYSTEM\SAI\sai_module_menu::POISITION_LEFT,
|
||||||
|
\SYSTEM\SAI\sai_module_menu::DIVIDER_LEFT,
|
||||||
|
\SYSTEM\PAGE\replace::replaceFile((new \PSAI('saimod_mojotrollz_vote/tpl/menu.tpl'))->SERVERPATH()));}
|
||||||
|
|
||||||
public static function right_public(){return false;}
|
public static function right_public(){return false;}
|
||||||
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
|
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
|
||||||
|
|
||||||
|
|||||||
@ -12,12 +12,12 @@
|
|||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<button type="button" class="btn-sm btn btn-warning btn_server_visible" _id="${id}" _i="${i}"><span class="glyphicon glyphicon-repeat" aria-hidden="true"></span></button>
|
<button type="button" class="btn-sm btn btn-warning btn_server_visible" _id="${id}" _i="${i}"><span class="fa fa-redo" aria-hidden="true"></span></button>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<button type="button" class="btn-sm btn btn-success btn_server_edit" _id="${id}" _name="${name}" _url="${url}" _version="${version}" _description="${description}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></button>
|
<button type="button" class="btn-sm btn btn-success btn_server_edit" _id="${id}" _name="${name}" _url="${url}" _version="${version}" _description="${description}"><span class="fa fa-edit" aria-hidden="true"></span></button>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<button type="button" class="btn-sm btn btn-danger btn_server_del" _id="${id}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>
|
<button type="button" class="btn-sm btn btn-danger btn_server_del" _id="${id}"><span class="fa fa-trash" aria-hidden="true"></span></button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
7
mojotrollz/sai/saimod_mojotrollz_vote/tpl/menu.tpl
Normal file
7
mojotrollz/sai/saimod_mojotrollz_vote/tpl/menu.tpl
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<li class="nav-item">
|
||||||
|
<a id="menu_mojotrollz_vote" class="nav-link" data-toggle="tooltip" data-placement="bottom" title="Vote Servers" href="#!mojotrollz_vote">
|
||||||
|
<span class="d-lg-none" style="padding-left: 15px;"></span>
|
||||||
|
<i class="fa fa-chart-bar" aria-hidden="true"></i>
|
||||||
|
<span class="d-lg-none"> Vote Servers</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
@ -31,7 +31,7 @@ Cron Last Visit: ${last_visit}<br/>
|
|||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><button type="button" class="btn-sm btn btn-success" id="btn_server_save"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> ${basic_save}</button></td>
|
<td><button type="button" class="btn-sm btn btn-success" id="btn_server_save"><span class="fa fa-plus" aria-hidden="true"></span> ${basic_save}</button></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user