Example #1
0
// You should have received a copy of the ProEthos License along with the ProEthos
// Software. If not, see
// https://raw.githubusercontent.com/bireme/proethos/master/LICENSE.txt
/**
 * Scheduled Popup
 * @author Rene Faustino Gabriel Junior  (Analista-Desenvolvedor)
 * @copyright © Pan American Health Organization, 2013. All rights reserved.
 * @access public
 * @version v.0.13.46
 * @package Proethos
 * @subpackage Scheduled
 */
require "cab.php";
require $include . 'sisdoc_data.php';
require "_class/_class_meeting.php";
$mt = new meeting();
require $include . '_class_form.php';
$form = new form();
if (strlen($dd[2]) == 0) {
    $dd[2] = '10';
}
$cp = array();
array_push($cp, array('$H8', '', '', false, true));
array_push($cp, array('$D8', '', '<nobr>' . msg('scheduled_meeting'), True, true));
array_push($cp, array('$[6-20]', '', '<nobr>' . msg('works_for_page'), True, true));
array_push($cp, array('$B8', '', msg('show'), False, true));
if (strlen($acao) == 0 or strlen($dd[1]) < 10) {
    echo '<h2>' . msg('agenda_for_meeting') . '</h2>';
    echo '<TABLE width="400" border=0 class="tabela01" >
			<TR><TH colspan=2 align="center" class="tabela00">
			' . msg('inform_the_data') . '
 protected function execute($arguments = array(), $options = array())
 {
     // initialize the database connection for RdvZ 1.x database
     $opt = array('dsn' => $arguments['dsn'], 'username' => $arguments['username'], 'password' => $arguments['password']);
     $d2 = new sfPDODatabase($opt);
     $rdvz1 = $d2->getConnection();
     $this->logSection('rdvz', sprintf('Retrieving datas from RdvZ 1.x database "%s"', $opt['dsn']));
     /**
      * This part is about fetching the datas from the old database
      * and formatting them before inserting into the new one.
      */
     // initialize the database connection for RdvZ 2.0 database
     $databaseManager = new sfDatabaseManager($this->configuration);
     $connection = $databaseManager->getDatabase($options['connection'])->getConnection();
     $res = $rdvz1->query('select * from meeting')->fetchAll();
     foreach ($res as $meet) {
         // If the user doesn't exists in the new database, we have to retrieve his information
         // from the ldap server.
         if (sfConfig::get('app_authentication_type') == 'ldap') {
             $user = $this->getUserFromDatabase($meet['uid']);
             $user_id = $user->getId();
             $user->free();
             unset($user);
         }
         $meeting = new meeting();
         $meeting->setHash($meet['mid']);
         $meeting->setTitle($meet['title']);
         $meeting->setDescription($meet['description']);
         $meeting->setUid($user_id);
         $meeting->setClosed($meet['closed']);
         $meeting->setDateDel($meet['date_del']);
         $meeting->setDateEnd($meet['date_end']);
         $meeting->setNotif($meet['notif'] == 'Y' ? 1 : 0);
         $meeting->save(null, false);
         $meeting_id = $meeting->getId();
         $meeting->free();
         unset($meeting);
         $res2 = $rdvz1->query("select * from meeting_date where mid = '" . $meet['mid'] . "'")->fetchAll();
         foreach ($res2 as $date) {
             $meeting_date = new meeting_date();
             $meeting_date->setMid($meeting_id);
             $meeting_date->setDate($date['date']);
             $meeting_date->setComment($date['comment']);
             $meeting_date->save();
             $meeting_date_id = $meeting_date->getId();
             $meeting_date->free();
             unset($meeting_date);
             $res3 = $rdvz1->query("select * from meeting_poll where pollid = " . $date['pollid'])->fetchAll();
             foreach ($res3 as $poll) {
                 $meeting_poll = new meeting_poll();
                 $meeting_poll->setDateId($meeting_date_id);
                 $meeting_poll->setPoll($poll['poll']);
                 if ($poll['user_comment']) {
                     $meeting_poll->setComment($poll['user_comment']);
                 }
                 if ($poll['uid'] != '') {
                     $poll_user = $this->getUserFromDatabase($poll['uid']);
                     $meeting_poll->setUid($poll_user->getId());
                     $poll_user->free();
                     unset($poll_user);
                 }
                 if ($poll['participant_name'] != '') {
                     $meeting_poll->setParticipantName($poll['participant_name']);
                 }
                 $meeting_poll->save();
                 $meeting_poll->free();
                 unset($meeting_poll);
             }
         }
     }
     $this->logSection('rdvz', "The RdvZ 2.0 database is now filled with your former datas. You can now delete the old database.");
 }
require "_class/_class_message.php";
$message = 'messages/msg_' . $LANG . '.php';
if (file_exists($message)) {
    require $message;
}
/* User Class */
require '_class/_class_user.php';
$ss = new users();
require '_class/_class_user_perfil.php';
$perfil = new user_perfil();
/* Header Class */
require "_class/_class_header_proethos.php";
$hd = new header();
/* load configuration committe */
$hd->load_committe();
echo $hd->head();
//* Class Printer */
require $include . 'sisdoc_email.php';
//* Class Printer */
require '_class/_class_printer.php';
$pr = new printer();
require $include . 'sisdoc_data.php';
/* Mensagens do sistema */
require "_class/_class_meeting.php";
$mt = new meeting();
$data = round($dd[1]);
$pag = round($dd[2]);
$sx .= '<div id="content">';
$sx .= $mt->mostra($data, $pag);
$sx .= '</div>';
echo $pr->view($sx);
            <table class="table table-striped">
                <caption>
                    <h4>我预定会议</h4>

                </caption>

                <tr>
                    <th>会议名</th>
                    <th>会议地点</th>
                    <th>会议日期</th>
                    <th>会议时间</th>
                    <th>操作</th>
                </tr>

                <?php 
$row = new meeting();
for ($i = 0; $i < $num; $i++) {
    $row->initMeeting($re[$i]);
    ?>



                <tr>
                    <td><?php 
    echo $row->getName();
    ?>
</td>
                    <td><?php 
    echo $row->getRid();
    ?>
</td>
Example #5
0
$timezone = $user->data['user_timezone'];
$dst = $user->data['user_dst'];
// Start auth check
if (!$auth->acl_get('u_meeting_view')) {
    if ($user->data['user_id'] != ANONYMOUS) {
        //trigger_error('MEETING_AUTH_NO_VIEW');
    }
    if ($vk == 1) {
        redirect(append_sid("{$phpbb_root_path}portal/block/login_box.{$phpEx}"));
    } else {
        login_box('', $user->lang['LOGIN_VIEWMEETING']);
    }
}
//Create CLASS $meeting
include $phpbb_root_path . 'portal/includes/meeting_class.' . $phpEx;
$meeting = new meeting();
$bbcode_status = $config['allow_bbcode'] ? true : false;
$smilies_status = $bbcode_status && $config['allow_smilies'] ? true : false;
$img_status = $bbcode_status ? true : false;
$url_status = $config['allow_post_links'] ? true : false;
// Grab only parameters needed here
$meeting_id = request_var('meeting', 0);
$id = request_var('id', 0);
$comment_id = request_var('comment', 0);
$start = request_var('start', 0);
$marshrut = request_var('marshrut', 0);
$meeting_for_marshrut = request_var('meeting_for_marshrut', 0);
$action = request_var('action', '');
$vid = request_var('vid', '');
$act = request_var('act', '');
$number = request_var('n', '');