function _moduleContent(&$smarty, $module_name) { global $arrConf; //include module files include_once "libs/paloSantoOrganization.class.php"; //folder path for custom templates $local_templates_dir = getWebDirModule($module_name); //conexion resource $pDB = new paloDB($arrConf['elastix_dsn']["elastix"]); //user credentials global $arrCredentials; //solo el susperadmin puede acceder a este modulo if ($arrCredentials["userlevel"] != "superadmin") { header("Location: index.php"); } //actions $accion = getAction(); $content = ""; switch ($accion) { case "apply": $content = applyOrgPermission($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials); break; case "getSelected": $content = getSelected($pDB, $arrCredentials["userlevel"]); break; default: $content = reportOrgPermission($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials); break; } return $content; }
defined('_JEXEC') or die('Restricted access'); ?> <div style="width: <?php echo $params->get('preview_width', '220'); ?> px;margin: 0 auto;"> <img src="images/blank.png" name="preview" id="variation_preview" border="0" width="<?php echo $params->get('preview_width', '270'); ?> " height="<?php echo $params->get('preview_height', '227'); ?> " alt="Mixxmag" /> <form action="index.php" name="chooserform" method="get" class="variation-chooser"> <div class="controls"> <img class="control-prev" id="variation_chooser_prev" title="Previous" alt="prev" src="images/blank.png" style="background-image: url(templates/rt_solarsentinel_j15/images/showcase-controls.png);" /> <select name="tstyle" id="variation_chooser" class="button" style="float: left;"> <?php for ($x = 1; $x <= 10; $x++) { echo "<option value=\"style{$x}\"" . getSelected('style' . $x) . ">Style {$x}</option>\n"; } ?> </select> <img class="control-next" id="variation_chooser_next" title="Next" alt="next" src="images/blank.png" style="background-image: url(templates/rt_solarsentinel_j15/images/showcase-controls.png);"/> </div> <input class="button" type="submit" value="Select" /> </form> </div>
<?php require_once 'includes/session-start.req-inc'; require_once 'includes/access-required.html.php'; $addressToDelete = getSelected($_SESSION['currentUserID'], $_SESSION['currentAddress']); ?> <h1 class="cover-heading">Delete</h1> <form method="post" action="?view=userdefault"> <input type="submit" value="Return To View All" class="btn btn-default" /> </form> <hr> <?php if (isPostRequest()) { if (deleteAddress($_SESSION['currentAddress'])) { $results = 'Deleted'; $isDeleted = true; } else { $results = 'Error: address was not deleted.'; } } include 'includes/results.html.php'; ?> <?php if (!isset($isDeleted)) {
<?php require_once 'includes/session-start.req-inc'; require_once 'includes/access-required.html.php'; $currentAddressID = filter_input(INPUT_GET, 'view_address_id'); $_SESSION['currentAddress'] = $currentAddressID; $viewAddress = getSelected($currentUserID, $currentAddressID); if ($viewAddress[0]['address_group_id'] == 1) { $displayGroup = 'View Friend'; } else { if ($viewAddress[0]['address_group_id'] == 2) { $displayGroup = 'View Family Member'; } else { if ($viewAddress[0]['address_group_id'] == 3) { $displayGroup = 'View Coworker'; } else { $displayGroup = 'Unknown Group Type'; } } } ?> <h1 class="cover-heading"><?php echo $displayGroup; ?> </h1> <div class="row"> <table class="table">