Esempio n. 1
0
 // biblio basket clear process
 if (isset($_POST['clear_biblio'])) {
     $_SESSION['m_mark_biblio'] = array();
 }
 // show all
 echo '<div class="tagline">';
 echo '<div class="memberInfoHead">' . __('Member Detail') . '</div>' . "\n";
 echo '</div>';
 echo '<div class="collection-list"><div class="item_list">';
 echo showMemberDetail();
 echo '</div>';
 echo '<div class="tagline">';
 echo '<div class="memberInfoHead">' . __('Your Current Loan') . '</div>' . "\n";
 echo '</div>';
 echo '<div class="collection-list"><div class="item_list">';
 echo showLoanList();
 echo '</div>';
 echo '<div class="tagline">';
 echo '<div class="memberInfoHead">' . __('Your Loan History') . '</div>' . "\n";
 echo '</div>';
 echo showLoanHist();
 echo '</div>';
 echo '<div class="tagline">';
 echo '<div class="memberInfoHead">' . __('Your Title Basket') . '</div><a name="biblioBasket"></a>' . "\n";
 echo showBasket();
 echo '</div>';
 // change password only form NATIVE authentication, not for others such as LDAP
 if ($sysconf['auth']['member']['method'] == 'native') {
     echo '<div class="tagline">';
     echo '<div class="memberInfoHead">' . __('Change Password') . '</div>' . "\n";
     echo '</div>';
            $_curr_date = date('Y-m-d');
            if (simbio_date::compareDates($array_data[3], $_curr_date) == $_curr_date) {
                #return '<strong style="color: #f00;">'.$array_data[3].' '.__('OVERDUED').'</strong>';
            } else {
                return $array_data[3];
            }
        }
        // modify column value
        $_loan_list->modifyColumnContent(3, 'callback{showOverdue}');
        // set table and table header attributes
        $_loan_list->table_attr = 'align="center" class="memberLoanList" cellpadding="5" cellspacing="0"';
        $_loan_list->table_header_attr = 'class="dataListHeader" style="font-weight: bold;"';
        $_loan_list->using_AJAX = false;
        // return the result
        $_result = $_loan_list->createDataGrid($dbs, $_table_spec, $num_recs_show);
        $_result = '<div class="memberLoanListInfo">' . $_loan_list->num_rows . ' ' . __('Current Loan item(s)') . '</div>' . "\n" . $_result;
        return $_result;
    }
    /* Experimental Loan History - end */
    // show all
    #echo '<h3 class="memberInfoHead">'.__('Your Current Loan').'</h3>'."\n";
    #echo showLoanList();
    $download = '<h3 class="memberInfoHead">' . __('Your Current Loan') . '</h3>' . "\n";
    $download .= showLoanList();
    header("Content-Description: File Transfer");
    header("Content-Disposition: attachment; filename=current_loan.html");
    header("Content-Type: text/html");
    #header("Content-Transfer-Encoding: binary");
    echo $download;
    exit;
}