Exemple #1
0
function show_vol($vol)
{
    $status = $vol->status;
    $image = button_image($status);
    list_item_array(array(vol_info($vol), vol_modes($vol), info($vol), rating_info($vol)));
}
Exemple #2
0
     page_tail();
 } else {
     page_head("Help Volunteer: {$vol->name}");
     skype_script();
     echo show_info($vol);
     if (false) {
         $status = skype_status($vol->skypeid);
         if ($status != $vol->status) {
             $vol->status = $status;
             $vol->last_check = time();
             if (online($vol->status)) {
                 $vol->last_online = time();
             }
             vol_update_status($vol);
         }
         $image = button_image($status);
         echo "\n        <script type=\"text/javascript\" src=\"http://download.skype.com/share/skypebuttons/js/skypeCheck.js\"></script>\n        <img src=images/help/{$image}><p>\n    ";
         echo "<table class=box cellpadding=8 width=100%><tr><td width=40%>";
         if (online($status)) {
             live_contact($vol);
         }
     }
     skype_call_button($vol);
     email_contact($vol);
     echo "</td></tr></table><p>\n";
     echo "<table class=box cellpadding=8 width=100%><tr><td>";
     $rating = rating_vol_auth($vol->id, $uid);
     if (!$rating) {
         $rating = new StdClass();
         $rating->rating = -1;
         $rating->comment = "";