Esempio n. 1
0
/**
 * Template tag for credits
 *
 * Note: You can limit (and even disable) the number of links being displayed here though the Admin interface:
 * Blog Settings > Advanced > Software credits
 *
 * @param array
 */
function credits($params = array())
{
    /**
     * @var AbstractSettings
     */
    global $global_Cache;
    global $Blog;
    // Make sure we are not missing any param:
    $params = array_merge(array('list_start' => ' ', 'list_end' => ' ', 'item_start' => ' ', 'item_end' => ' ', 'separator' => ',', 'after_item' => '#'), $params);
    $cred_links = $global_Cache->get('creds');
    if (empty($cred_links)) {
        // Use basic default:
        $cred_links = unserialize('a:2:{i:0;a:2:{i:0;s:24:"http://b2evolution.net/r";i:1;s:18:"free blog software";}i:1;a:2:{i:0;s:36:"http://b2evolution.net/web-hosting/r";i:1;s:19:"quality web hosting";}}');
    }
    $max_credits = empty($Blog) ? NULL : $Blog->get_setting('max_footer_credits');
    display_list($cred_links, $params['list_start'], $params['list_end'], $params['separator'], $params['item_start'], $params['item_end'], NULL, $max_credits);
}
Esempio n. 2
0
function get_privacy_setting_list_contents()
{
    if (isset($_GET['setting']) && ($_GET['setting'] == '1' || $_GET['setting'] == '2' || $_GET['setting'] == '3')) {
        global $user_id;
        global $db;
        $target_field = 'quality_tie';
        if ($_GET['setting'] == '2') {
            $target_field = 'category_friendlist';
        } else {
            if ($_GET['setting'] == '3') {
                $target_field = 'keyword_interests';
            }
        }
        $privacy_setting_results = mysql_query("SELECT {$target_field} FROM privacy_settings \n\t    \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t WHERE uid = {$user_id};", $db);
        while ($privacy_setting_row = mysql_fetch_array($privacy_setting_results)) {
            $list = $privacy_setting_row[$target_field];
        }
        if (strlen($list) <= 1) {
            echo '<tr><td><h5>Please click Get Privacy Suggestions to get privacy recommendations!</h5></td></tr>';
        } else {
            display_list($list);
        }
    }
}
Esempio n. 3
0
         echo '<p>Could not send message.</p><br /><br /><br /><br />
     <br /><br />';
     }
     break;
 case 'delete':
     if ($_SESSION) {
         delete_message($_SESSION['auth_user'], $_SESSION['selected_account'], $messageid);
     }
     //note deliberately no 'break' - we will continue to the next case
 case 'select-account':
 case 'view-mailbox':
     // if mailbox just chosen, or view mailbox chosen, show mailbox
     if (isset($selected_account)) {
         display_list($_SESSION['auth_user'], $_SESSION['selected_account']);
     } else {
         display_list($_SESSION['auth_user']);
     }
     break;
 case 'show-headers':
 case 'hide-headers':
 case 'view-message':
     // if we have just picked a message from the list, or were looking at
     // a message and chose to hide or view headers, load a message
     $fullheaders = $action == 'show-headers';
     display_message($_SESSION['auth_user'], $_SESSION['selected_account'], $messageid, $fullheaders);
     break;
 case 'reply-all':
     //set cc as old cc line
     if (!$imap) {
         $imap = open_mailbox($_SESSION['auth_user'], $_SESSION['selected_account']);
     }
Esempio n. 4
0
</a></li>
</ul>
<a href="http://fplanque.net/Blog/itTrends/2004/01/10/rss_rdf_and_atom_in_a_nutshell" title="External - English"><?php 
    echo T_('What is RSS?');
    ?>
</a>
</div>

<div class="bSideItem">
<p class="center">powered by<br />
<a href="http://b2evolution.net/" title="b2evolution home"><img src="../../rsc/img/b2evolution_button.png" alt="b2evolution" width="80" height="15" border="0" class="middle" /></a>
</p>
<p class="center">
<?php 
    // Display additional credits (see /conf/_advanced.php)
    display_list($credit_links, T_('Credits') . ': ', ' ', '|', ' ', ' ');
    ?>
</p>
</div>



</div>

<?php 
}
// end hiding the sidebar on single post pages
?>


<?php 
Esempio n. 5
0
<?php

if (array_key_exists('form_submit', $_POST)) {
    #If the form has been submitted
    display_header("Abstract Submission");
    $data = trim_data();
    if (test_input($data)) {
        if (validate_data($data)) {
            store_data($data);
            success_alert();
        }
    }
} elseif (array_key_exists('list', $_GET)) {
    #If the link to papers has been selected
    display_header("List of Submitted Papers");
    display_list();
} elseif (array_key_exists('abstract', $_GET)) {
    $filename = trim($_GET['abstract']);
    #sanitises data before used to reduce chance of script injection
    $sanitised_fn = htmlentities($filename);
    display_abstract($sanitised_fn);
} else {
    display_header("Abstract Submission and Directory");
    display_form();
}
include_once "footer.php";
/* Function to output the header of a page
  @param: $pagetitle string containing the name to go in the browser
  @return: none
*/
function display_header($pagetitle)
 /**
  * Display the widget!
  *
  * @param array MUST contain at least the basic display params
  */
 function display($params)
 {
     global $Blog;
     $this->init_display($params);
     // Available XML feeds:
     echo $this->disp_params['block_start'];
     $this->disp_title($this->get_title());
     echo $this->disp_params['block_body_start'];
     echo $this->disp_params['list_start'];
     $SkinCache =& get_SkinCache();
     $SkinCache->load_by_type('feed');
     // TODO: this is like touching private parts :>
     foreach ($SkinCache->cache as $Skin) {
         if ($Skin->type != 'feed') {
             // This skin cannot be used here...
             continue;
         }
         echo $this->disp_params['item_start'];
         echo $Skin->name . ': ';
         echo '<a href="' . $Blog->get_item_feed_url($Skin->folder) . '">' . T_('Posts') . '</a>';
         if ($Blog->get_setting('allow_comments') != 'never' && $Blog->get_setting('comment_feed_content') != 'none' && $Blog->get_setting('comments_latest')) {
             echo ', <a href="' . $Blog->get_comment_feed_url($Skin->folder) . '">' . T_('Comments') . '</a>';
         }
         echo $this->disp_params['item_end'];
     }
     echo $this->disp_params['list_end'];
     // Display "info" link, if activated.
     if ($this->disp_params['disp_info_link']) {
         /**
          * @var AbstractSettings
          */
         global $global_Cache;
         $feedhlp = $global_Cache->get('feedhlp');
         if (empty($feedhlp)) {
             // Use basic default: (fp> needs serious update) -- Note: no localization because destination is in English anyway.
             $feedhlp = array(array('http://www.webreference.fr/defintions/rss-atom-xml', 'What is RSS?'));
         }
         if ($this->disp_params['info_link']) {
             $link_params = array('target' => '_blank');
         } else {
             $link_params = array('target' => '');
         }
         display_list($feedhlp, $this->disp_params['notes_start'], $this->disp_params['notes_end'], ' ', '', '', NULL, 1, $link_params);
     }
     echo $this->disp_params['block_body_end'];
     echo $this->disp_params['block_end'];
     return true;
 }
Esempio n. 7
0
     break;
 case 'send-message':
     if (send_message($to, $cc, $subject, $message)) {
         echo '<p>Message sent.</p><br /><br /><br /><br /><br /><br />';
     } else {
         echo '<p>Could not send message.</p><br /><br /><br /><br />
         <br /><br />';
     }
     break;
 case 'delete':
     delete_message($_SESSION['auth_user'], $_SESSION['selected_account'], $messageid);
     //note deliberately no 'break' - we will continue to the next case
 case 'select-account':
 case 'view-mailbox':
     // if mailbox just chosen, or view mailbox chosen, show mailbox
     display_list($_SESSION['auth_user'], $_SESSION['selected_account']);
     break;
 case 'show-headers':
 case 'hide-headers':
 case 'view-message':
     // if we have just picked a message from the list, or were looking at
     // a message and chose to hide or view headers, load a message
     $fullheaders = $action == 'show-headers';
     display_message($_SESSION['auth_user'], $_SESSION['selected_account'], $messageid, $fullheaders);
     break;
 case 'reply-all':
     //set cc as old cc line
     if (!$imap) {
         $imap = open_mailbox($_SESSION['auth_user'], $_SESSION['selected_account']);
     }
     if ($imap) {
     break;
 case 'send-message':
     if (send_message($to, $cc, $subject, $message)) {
         echo '<p>Message sent.</p><br /><br /><br /><br /><br /><br />';
     } else {
         echo '<p>Could not send message.</p><br /><br /><br /><br />
         <br /><br />';
     }
     break;
 case 'delete':
     delete_message($HTTP_SESSION_VARS['auth_user'], $HTTP_SESSION_VARS['selected_account'], $messageid);
     //note deliberately no 'break' - we will continue to the next case
 case 'select-account':
 case 'view-mailbox':
     // if mailbox just chosen, or view mailbox chosen, show mailbox
     display_list($HTTP_SESSION_VARS['auth_user'], $HTTP_SESSION_VARS['selected_account']);
     break;
 case 'show-headers':
 case 'hide-headers':
 case 'view-message':
     // if we have just picked a message from the list, or were looking at
     // a message and chose to hide or view headers, load a message
     $fullheaders = $action == 'show-headers';
     display_message($HTTP_SESSION_VARS['auth_user'], $HTTP_SESSION_VARS['selected_account'], $messageid, $fullheaders);
     break;
 case 'reply-all':
     //set cc as old cc line
     if (!$imap) {
         $imap = open_mailbox($HTTP_SESSION_VARS['auth_user'], $HTTP_SESSION_VARS['selected_account']);
     }
     if ($imap) {
Esempio n. 9
0
        redirect($PAGE->url, get_string('saved_changes', 'block_learning_plan'), 2);
    }
//$employ_statusform = new employee_trainingstatus_form(null,array('l_id'=>$lp_id));
    //$sql = 'select  t_id, (select type_id from  {learning_training} where id =t_id) as type_id, lp_id, lut.status, lut.remarks, `u_id` as id,(select training_name from  {learning_training} where id =t_id)
    //        as training, (select url from {learning_training} where id =t_id) as url, (select learning_plan from   {learning_learningplan} where id =lp_id) as learning_plan, (SELECT
    //        CONCAT(firstname," ", lastname)FROM {user} where username!="guest" AND id = u_id) as name,(select
    //        start_date from  {course} where id =t_id)as date1,(select end_date from  {learning_training}
    //        where id =t_id)as date2 from {learning_plan_training} lpt inner join {learning_user_trainingplan} lut
    //        on lut.lpt_id=lpt.id  where lpt.lp_id=? AND lut.u_id=?'; //ORDER BY $orderby';
    ////$inc = 0;
    //$form_header = get_string('trainingstatus', 'block_learning_plan');
    //
    //    $setting = optional_param('setting', null, PARAM_INT);
    //
    //$rs = $DB->get_records_sql($sql, array($lp_id, $USER->id));


//if(isset($rs) && !empty($rs)){
//print_collapsible_region_start('', 'employe-trainingstatus-form', $form_header,false,$collapse);
// $employ_statusform->display();
//print_collapsible_region_end();
$student_status = display_list($lp_id, $USER->id);
//$title = '<table width="100%" style="background-color:#EEE;"><tr><td style="text-align:center;"><h3>'.get_string('status_report', 'block_learning_plan').'</h3><h3>'.$USER->firstname . ' ' . $USER->lastname .'</h3><h3>'.get_learningplan_name($lp_id) .'</h3></h3><p>'.get_string('report_at', 'block_learning_plan') . ' ' .(Date("d M Y")).'</p></td></tr></tr><table>';

echo html_writer::table($student_status);
//} else {
//	echo "No courses assigned";
//}
$PAGE->requires->js_init_call('M.block_learning_plan.init', array($viewpage = "", $setting = ""));
echo $OUTPUT->footer();
//End Form Display