*
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 *
 * ************************************************************************** */
/** 
 * Plantilla para el paso 1 del modulo instalador para SimpleSAMLphp v1.13.1
 * @package    IdPRef\modules\idpinstaller
 * @author     "PRiSE [Auditoria y Consultoria de privacidad y Seguridad, S.L.]"
 * @copyright  Copyright (C) 2014 - 2015 by the Spanish Research and Academic
 *             Network
 * @license    http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
 * @version    0.3-Sprint3-R57
 */
$step = 1;
if (count($this->data['sir']['errors']) > 0) {
    $button_msg = $this->t('{idpinstaller:idpinstaller:try_again_button}');
    $next_step = 1;
} else {
    $button_msg = $this->t('{idpinstaller:idpinstaller:next_step}');
    $next_step = 2;
    echo "<h3>" . $this->t('{idpinstaller:idpinstaller:step1_title}') . "</h3>";
    if (count($this->data['sir']['info']) > 0) {
        echo "<p>" . implode("<br/>", $this->data['sir']['info']) . "</p>";
    }
}
drawButton($next_step, $button_msg, 'style="margin-top:20px;"');
Esempio n. 2
0
function drawBackButton($drawTableTags = TRUE)
{
    drawButton('BACK', "button1", NULL, NULL, $drawTableTags, 2);
}
Esempio n. 3
0
    $class = '';
    while ($row = $result->fetch_assoc()) {
        extract($row);
        if ($a % 2 == 0) {
            $class = 'listRowEven';
        } else {
            $class = 'listRowOdd';
        }
        $Table_ID = rawurlencode($Table_ID);
        echo "<tr class='{$class}'><td align=center><a href='DetailView_Tables.php?Table_ID={$Table_ID}'><img src='../images/view.png' alt='View' title='View'></a>" . "&nbsp;&nbsp;<a href='Edit_Tables.php?Table_ID={$Table_ID}'><img src='../images/edit.png' alt='Edit' title='Edit'></a>" . "&nbsp;&nbsp;<a href='Del_Tables.php?Table_ID={$Table_ID}'><img src='../images/delete.png' alt='Delete' title='Delete'></a></td>";
        printf("<td>%s</td><td>%s</td></tr>\n", $row['Table_Name'], $row['Remarks']);
        $a++;
    }
    $result->close();
    if ($a % 2 == 0) {
        $class = 'listRowEven';
    } else {
        $class = 'listRowOdd';
    }
    echo '<tr><td colspan="3" class="' . $class . '">' . $a . ' records in total</td></tr>';
} else {
    die($mysqli->error);
}
?>
</table>
<?php 
drawButton('CANCEL');
?>
</fieldset>
<?php 
drawFooter();
 * http://www.rediris.es/sir)
 *
 * *****************************************************************************
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 *
 * ************************************************************************** */
/** 
 * Plantilla para el paso 3 del modulo instalador para SimpleSAMLphp v1.13.1
 * @package    IdPRef\modules\idpinstaller
 * @author     "PRiSE [Auditoria y Consultoria de privacidad y Seguridad, S.L.]"
 * @copyright  Copyright (C) 2014 - 2015 by the Spanish Research and Academic
 *             Network
 * @license    http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
 * @version    0.3-Sprint3-R57
 */
$step = 2;
$next_step = 5;
drawButton($step, $this->t('{idpinstaller:idpinstaller:try_again_button_step_n}') . " 2", 'style="margin-top:20px;float:left;margin-right:10px;"');
drawButton($next_step, $this->t('{idpinstaller:idpinstaller:next_step}'), 'style="margin-top:35px;"');
 * Copyright (C) 2014 - 2015 by the Spanish Research and Academic Network.
 * This code was developed by Auditoria y Consultoría de Privacidad y Seguridad
 * (PRiSE http://www.prise.es) for the RedIRIS SIR service (SIR: 
 * http://www.rediris.es/sir)
 *
 * *****************************************************************************
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 *
 * ************************************************************************** */
/** 
 * Plantilla para el paso 4 del modulo instalador para SimpleSAMLphp v1.13.1
 * @package    IdPRef\modules\idpinstaller
 * @author     "PRiSE [Auditoria y Consultoria de privacidad y Seguridad, S.L.]"
 * @copyright  Copyright (C) 2014 - 2015 by the Spanish Research and Academic
 *             Network
 * @license    http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
 * @version    0.3-Sprint3-R57
 */
drawButton(5, $this->t('{idpinstaller:idpinstaller:try_again_button}'), 'style="margin-top:20px;float:left;margin-right:10px;"');
drawButton('情報', '情報', "act.action='information.php?action=Main';act.actionb.value='';act.target='{$SecTarget}';act.submit();");
//Button 18: Rankings
drawButton('排名', '排名', "act.action='gen_info.php?action=ranks';act.actionb.value='none';act.target='{$SecTarget}';act.submit();");
//Button 19: Refresh - Disable
drawSButton('----', 'return false;', 'ig_refresh_d');
//Button 20: Refresh - Enabled
drawSButton('重新整理', 'refreshWindow();', "ig_refresh_e' style='position: absolute;visibility: hidden;");
//Button 21: Chat Board
drawSButton('留言板', "window.open('','{$CFU_Time}','resizable=1,width=800,height=600');act.action='chat.php';act.target='{$CFU_Time}';act.submit();");
//Button 22: Instant Chatroom
drawSButton('聊天室', 'openChatWindow();');
//Button 23: Logout
drawSButton('登出', "location.replace('index2.php');");
//Button 24: Manager Script
if ($Player['acc_status'] < 0) {
    drawButton('管理', '管理', "act.action='manager.php';act.actionb.value='none';act.target='{$SecTarget}';act.submit();");
}
?>
</div>

<?php 
function drawButton($Caption, $wTitle, $actions)
{
    echo "<div class='lowLight' onClick=\"SetiFT('\\'{$wTitle}\\'');{$actions}\" onMouseOver=\"this.className = 'highLight';\" onMouseOut=\"this.className = 'lowLight';\" onDrag='return false;'>";
    echo "<b>{$Caption}</b>";
    echo "</div>";
}
function drawSButton($Caption, $actions)
{
    echo "<div class='lowLight' onClick=\"{$actions}\" onMouseOver=\"this.className = 'highLight';\" onMouseOut=\"this.className = 'lowLight';\" onDrag='return false;'>";
    echo "<b>{$Caption}</b>";
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 *
 * ************************************************************************** */
/** 
 * Plantilla para el paso 7 del modulo instalador para SimpleSAMLphp v1.13.1
 * @package    IdPRef\modules\idpinstaller
 * @author     "PRiSE [Auditoria y Consultoria de privacidad y Seguridad, S.L.]"
 * @copyright  Copyright (C) 2014 - 2015 by the Spanish Research and Academic
 *             Network
 * @license    http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
 * @version    0.3-Sprint3-R57
 */
$step = 7;
$next_step = 8;
$inputs = "";
if (count($this->data['sir']['errors2']) > 0) {
    $button_msg = $this->t('{idpinstaller:idpinstaller:try_again_button}');
    $next_step = $step;
    $inputs = '<input type="hidden" name="only_part2" value="true"/>';
} else {
    $button_msg = $this->t('{idpinstaller:idpinstaller:next_step}');
    if (count($this->data['sir']['info']) > 0) {
        echo "<p>" . implode("<br/>", $this->data['sir']['info']) . "</p>";
    }
}
drawButton($next_step, $button_msg, 'style="margin-top:35px;"', $inputs);
$inputs_import .= "<p style='margin-top:3px;'>" . $this->t('{idpinstaller:idpinstaller:step6_cert_info2}') . '</p>';
$inputs_import .= 'Certificado:<br/>';
$inputs_import .= '<textarea name="private_key" style="width: 90%; height: 8em; font-family: Monospace"></textarea><br/>';
$inputs_import .= 'Clave privada:<br/>';
$inputs_import .= '<textarea name="certificate" style="width: 90%; height: 8em; font-family: Monospace"></textarea><br/><br/>';
?>
<div id = "create_form" <?php 
if ($selected == "import") {
    ?>
style="display:none;" <?php 
}
?>
>
    <?php 
drawButton($next_step, $this->t('{idpinstaller:idpinstaller:next_step}'), '', $inputs_create);
?>
</div>
<div id = "import_form" <?php 
if ($selected == "create") {
    ?>
style="display:none;" <?php 
}
?>
>
    <?php 
drawButton($next_step, $this->t('{idpinstaller:idpinstaller:next_step}'), '', $inputs_import);
?>
</div>
<?php 
$dir_certs = realpath(__DIR__ . "/../../../") . "/cert";
echo "<p style='margin-top:3px;'>" . $this->t('{idpinstaller:idpinstaller:step6_footer_note}') . '<i>' . $dir_certs . '</i></p>';