📄 admin_network.tpl.php
字号:
<?php// -----------------------------------------------------------------------// This file is part of AROUNDMe// // Copyright (C) 2003-2007 Barnraiser// http://www.barnraiser.org/// info@barnraiser.org// // This program is free software: you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation, either version 3 of the License, or// (at your option) any later version.// // This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.// // You should have received a copy of the GNU General Public License// along with this program; see the file COPYING.txt. If not, see// <http://www.gnu.org/licenses/>// -----------------------------------------------------------------------?><form action="index.php?ws=<?php echo $webspace['webspace_id'];?>&t=admin_network" method="POST"><input type="hidden" name="webspace_id" value="<?php if (isset($webspace['webspace_id'])) { echo $webspace['webspace_id'];}?>" /><input type="hidden" name="connection_id" value="<?php if (isset($connection['connection_id'])) { echo $connection['connection_id'];}?>" /><div id="am_core_area"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td width="240" valign="top"> <div class="box"> <h1><?php echo $lang['hdr_connections'];?></h1> <p> <?php echo $lang['txt_connections'];?><br /> </p> <ul> <li><a href="index.php?ws=<?php echo $webspace['webspace_id'];?>&t=connect"><?php echo $lang['href_back_to_start'];?></a></li> <li><a href="index.php?ws=<?php echo $webspace['webspace_id'];?>&t=admin_network"><?php echo $lang['href_list_connections'];?></a></li> </ul> </div> <div class="box"> <h1><?php echo $lang['hdr_block_connection'];?></h1> <p> <?php echo $lang['txt_block_connection'];?><br /> </p> </div> <div class="box"> <h1><?php echo $lang['hdr_permissions'];?></h1> <p> <?php echo $lang['txt_permissions'];?><br /> </p> <ul> <li><a href="index.php?ws=<?php echo $_REQUEST['ws']; ?>&t=admin_network&default_permissions=1"><?php echo $lang['href_set_defaults'];?></li> </ul> </div> </td> <td width="30" style="border-right: 1px solid #333"> <img src="<?php echo $template_path_core;?>img/pixel.png" width="30" height="1" border="0" alt="" /><br /> </td> <td width="40"> <img src="<?php echo $template_path_core;?>img/pixel.png" width="40" height="1" border="0" alt="" /><br /> </td> <td valign="top"> <?php if (isset($connection)) { ?> <div class="box"> <h1><?php echo $lang['hdr_connection'];?></h1> <table cellspacing="0" cellpadding="4" border="0"> <tr> <td valign="top"> <b><?php echo $lang['txt_label_openid'];?></b><br /> </td> <td valign="top"> <?php echo $connection['connection_openid'];?><br /> </td> </tr> <tr> <td valign="top"> <b><?php echo $lang['txt_label_nickname'];?></b><br /> </td> <td valign="top"> <?php echo $connection['connection_nickname'];?><br /> </td> </tr> <tr> <td valign="top"> <b><?php echo $lang['txt_label_email'];?></b><br /> </td> <td valign="top"> <?php echo $connection['connection_email'];?><br /> </td> </tr> <tr> <td valign="top"> <b><?php echo $lang['txt_label_name'];?></b><br /> </td> <td valign="top"> <?php echo $connection['connection_fullname'];?><br /> </td> </tr> <tr> <td valign="top"> <b><?php echo $lang['txt_label_country'];?></b><br /> </td> <td valign="top"> <?php echo $connection['connection_country'];?><br /> </td> </tr> <tr> <td valign="top"> <b><?php echo $lang['txt_label_language'];?></b><br /> </td> <td valign="top"> <?php echo $connection['connection_language'];?><br /> </td> </tr> <tr> <td valign="top"> <b><?php echo $lang['txt_label_create_datetime'];?></b><br /> </td> <td valign="top"> <?php echo am_strftime($connection['connection_create_datetime'],1);?><br /> </td> </tr> <tr> <td valign="top"> <b><?php echo $lang['txt_label_last_datetime'];?></b><br /> </td> <td valign="top"> <?php echo am_strftime($connection['connection_last_datetime'],1);?><br /> </td> </tr> <tr> <td valign="top"> <b><?php echo $lang['txt_label_invite'];?></b><br /> </td> <td valign="top"> <?php echo $connection['invitee_connection_id'];?><br /> </td> </tr> </table> <?php $checked = ""; if (isset($connection['status_id']) && $connection['status_id'] == $core_config['connection']['status']['barred']) { $checked = " checked=\"checked\""; } ?> <p> <label for="id_status_id"><?php echo $lang['txt_label_barred'];?></label> <input id="id_status_id" type="checkbox" name="status_id" value="<?php echo $core_config['connection']['status']['barred'];?>"<?php echo $checked;?> /> <br /> </p> </div> <div class="box"> <h1><?php echo $lang['hdr_permissions'];?></h1> <?php if (isset($permissions)) { $plugin_name = ""; ?> <table cellspacing="0" cellpadding="4" border="0" width="100%"> <?php foreach ($permissions as $key => $i): $checked = ""; if (intval($connection['connection_permission']) & intval($i['bitwise_operator'])) { $checked = " checked=\"checked\""; } ?> <tr title="click to check" id="id_permission_<?php echo $i['resource_name']; ?>" style="cursor: pointer;" onclick="check_uncheck('id_bitwise_operator_<?php echo $i['bitwise_operator'];?>', 'id_permission_<?php echo $i['resource_name']; ?>');"> <td valign="top"> <?php if (isset($lang['arr_permissions_desc'][$i['resource_name']])) { echo $lang['arr_permissions_desc'][$i['resource_name']]; } else { echo $i['resource_name']; } ?><br /> </td> <td valign="top" width="1"> <input onclick="check_uncheck('id_bitwise_operator_<?php echo $i['bitwise_operator'];?>', 'id_permission_<?php echo $i['resource_name']; ?>');" id="id_bitwise_operator_<?php echo $i['bitwise_operator'];?>" type="checkbox" name="bitwise_operators[]" value="<?php echo $i['bitwise_operator'];?>" <?php echo $checked;?> style="margin:2px;" /><br /> <script type="text/javascript"> //<![CDATA[ check_uncheck('id_bitwise_operator_<?php echo $i['bitwise_operator'];?>', 'id_permission_<?php echo $i['resource_name']; ?>'); check_uncheck('id_bitwise_operator_<?php echo $i['bitwise_operator'];?>', 'id_permission_<?php echo $i['resource_name']; ?>'); //]]> </script> </td> </tr> <?php endforeach; ?> </table> <?php }?> <p align="right"> <input type="submit" name="update_connection" value="<?php echo $lang['sub_save'];?>" class="input_submit" /><br /> </p> </div> <?php } elseif (isset($_REQUEST['default_permissions'])) { ?> <div class="box"> <h1><?php echo $lang['hdr_default_permissions'];?></h1> <p> <b><?php echo $lang['txt_default_permissions'];?></b><br /> </p> <table cellspacing="0" cellpadding="4" border="0" width="100%"> <?php foreach ($permissions as $key => $i): ?> <tr title="click to check" id="id_permission_<?php echo $i['resource_name']; ?>" style="cursor: pointer;" onclick="check_uncheck('id_bitwise_operator_<?php echo $i['bitwise_operator'];?>', 'id_permission_<?php echo $i['resource_name']; ?>');"> <td valign="top"> <?php if (isset($lang['arr_permissions_desc'][$i['resource_name']])) { echo $lang['arr_permissions_desc'][$i['resource_name']]; } else { echo $i['resource_name']; } ?><br /> </td> <td valign="top" align="right"> <?php $checked = ""; if (intval($default_permission) & intval($i['bitwise_operator'])) { $checked = " checked=\"checked\""; } ?> <input onclick="check_uncheck('id_bitwise_operator_<?php echo $i['bitwise_operator'];?>', 'id_permission_<?php echo $i['resource_name']; ?>');" id="id_bitwise_operator_<?php echo $i['bitwise_operator'];?>" type="checkbox" name="bitwise_operators[]" value="<?php echo $i['bitwise_operator'];?>" <?php echo $checked;?> style="margin:2px;" /><br /> <script type="text/javascript"> //<![CDATA[ check_uncheck('id_bitwise_operator_<?php echo $i['bitwise_operator'];?>', 'id_permission_<?php echo $i['resource_name']; ?>'); check_uncheck('id_bitwise_operator_<?php echo $i['bitwise_operator'];?>', 'id_permission_<?php echo $i['resource_name']; ?>'); //]]> </script> </td> </tr> <?php endforeach; ?> </table> <p align="right"> <input type="hidden" name="default_permissions" value="1" /> <input type="submit" name="update_default_permission" value="<?php echo $lang['sub_save'];?>" class="input_submit" /><br /> </p> </div> <?php } else { ?> <div class="box"> <h1><?php echo $lang['hdr_edit_connections'];?></h1> <?php if (isset($connections)) { ?> <table cellspacing="2" cellpadding="0" border="0" width="100%"> <tr> <td valign="top"> <b><?php echo $lang['txt_tb_head_name'];?></b><br /> </td> <td valign="top"> <b><?php echo $lang['txt_tb_head_created'];?></b><br /> </td> <td valign="top"> <b><?php echo $lang['txt_tb_head_status'];?></b><br /> </td> <td valign="top" align="right"> <b><?php echo $lang['txt_tb_head_select'];?></b><br /> </td> </tr> <?php foreach ($connections as $key => $i): ?> <tr id="id_connection_<?php echo $i['connection_id']; ?>" style="cursor: pointer;" onclick="check_uncheck('id_connection_checkbox_<?php echo $i['connection_id'];?>', 'id_connection_<?php echo $i['connection_id']; ?>')"> <td valign="top"> <a href="index.php?ws=<?php echo $webspace['webspace_id'];?>&t=admin_network&connection_id=<?php echo $i['connection_id'];?>"><?php echo $i['connection_nickname'];?></a><br /> </td> <td valign="top"> <?php echo am_strftime($i['connection_create_datetime']);?><br /> </td> <td valign="top"> <?php echo $lang['arr_connection']['status'][$i['status_id']];?><br /> </td> <td valign="top" align="right"> <input onclick="check_uncheck('id_connection_checkbox_<?php echo $i['connection_id'];?>', 'id_connection_<?php echo $i['connection_id']; ?>')" id="id_connection_checkbox_<?php echo $i['connection_id'];?>" type="checkbox" name="connection_ids[]" value="<?php echo $i['connection_id']; ?>" /><br /> </td> </tr> <?php endforeach; ?> </table> <p align="right"> <input type="submit" name="block_connections" value="<?php echo $lang['sub_block_connection'];?>" class="input_submit" /> <input type="submit" name="unblock_connections" value="<?php echo $lang['sub_unblock_connection'];?>" class="input_submit" /> </p> <?php }?> </div> <?php }?> </td> </tr> </table></div></form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -