Changeset 155

Show
Ignore:
Timestamp:
01/02/08 17:56:33 (1 year ago)
Author:
pdingle
Message:

added correct card handle, formatted profile page, altered timestamp storage format to be ISO8601

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/RB-0.91/wp-infocard/wp/admin.pw.php

    r150 r155  
    300300                pw_utils::screenPrint(pw_admin::getCurrentUserCardProfile()); 
    301301                return; 
    302                 include_once('userdata.pw.php'); 
    303                 global $current_user; 
    304  
    305                 $cardcount = pw_processing::getUserCardCount( $current_user->ID ); 
    306                 $handle = pw_processing::getCardHandle( $current_user->ID ); 
    307  
    308                 if ( $cardcount > 0 ) 
    309                 { 
    310 ?> 
    311                         <p> 
    312                                 <img src="<?php echo PW_IMGURL; ?>/infocard_60x42.png"/>  
    313 <?php  
    314                         pw_utils::screenPrint('An Information Card is associated with this account');  
    315                         //pw_utils::screenPrint('Information Card ID: ' . $handle);  
    316 ?> 
    317                         </p> 
    318  
    319 <?php 
    320                 } 
    321                 else 
    322                 { 
    323                                 echo "<p>" 
    324                                 . "<label for='Information Card Info' style='display: inline'><img src=\"" 
    325                                 . PW_IMGURL 
    326                                 . '/infocard_60x42_disabled.png"' 
    327                                 . " style='vertical-align: middle'/> &nbsp;"; 
    328                                 pw_utils::screenPrint('No Information Card associated with this account.'); 
    329                                 echo "</label></p>"; 
    330                 } 
    331302        } 
    332303} // end class pw_infocard 
     
    613584 
    614585                $output = "<h4>Information Cards</h4>\n"; 
    615                 $output .= "<table border='1'>\n"; 
     586                $output .= "<table border='1px' cellspacing='0'i cellpadding='4'><th><td>Card Identifier</td><td>Date Attached</td><td>Last Used</td><td colspan='2'>&nbsp;</td></th>\n"; 
    616587 
    617588                //$cardcount = pw_processing::getUserCardCount( $current_user->ID ); 
     
    621592                        foreach ($cards as $card) 
    622593                        { 
    623                                 $output .= "<tr><td><img src='" . PW_IMGURL . "/infocard_60x42.png'/>";  
     594                                $output .= "<tr><td><img src='" . PW_IMGURL . "/infocard_30x21.png'/>";  
    624595                                $output .= "</td><td>" . $card->cardhandle 
    625                                         . "</td><td>Last used: "  
    626                                         . $card->lastused . "</td><td>" 
     596                                        . "</td><td>"  
     597                                        . date( 'd M Y, g:ia T', strtotime($card->startdate)) . "</td><td>" 
     598                                        . date( 'd M Y, g:ia T', strtotime($card->lastused)) . "</td><td>" 
    627599                                        . "<a href=''>Verify</a></td><td>" 
    628600                                        . "<a href=''>Delete</a></td></tr>\n"; 
     
    637609                } 
    638610                $output .= "<tr><td><label for='Information Card Info' style='display: inline'><img src=\"" 
    639                 . PW_IMGURL . '/infocard_60x42_disabled.png"' 
     611                . PW_IMGURL . '/infocard_30x21_disabled.png"' 
    640612                . " style='vertical-align: middle'/> &nbsp;" 
    641                 . "</td><td colspan='4'><a href=''>" 
     613                . "</td><td colspan='5'><a href=''>" 
    642614                . "Attach a new Information Card" 
    643615                . "</a></td></tr>"; 
  • branches/RB-0.91/wp-infocard/wp/db_upgrade.pw.php

    r149 r155  
    9292                global $wpdb; 
    9393                $output = ''; 
    94                 $today = date('Y-m-d H-i-s'); 
     94                $today = date('c'); 
    9595 
    9696                 
     
    252252                global $wpdb; 
    253253                $output = ''; 
    254                 $today = date('Y-m-d H-i-s'); 
     254                $today = date('c'); 
    255255 
    256256                 
  • branches/RB-0.91/wp-infocard/wp/userdata.pw.php

    r144 r155  
    187187                $cardhash = $datamap['cardhash']->new_value; 
    188188                $cardhandle =  $datamap['cardhandle']->new_value; 
    189                 $today = date('Y-m-d H-i-s'); 
     189                $today = date('c'); 
    190190 
    191191                //$query = "SELECT * FROM wp_infocard_identities WHERE (ppid = '$ppid' "