Changeset 1600504
- Timestamp:
- 02/21/2017 11:00:21 AM (9 years ago)
- Location:
- wp-fevents-book/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (3 diffs)
-
style.css (modified) (1 diff)
-
wp-fevents-book.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-fevents-book/trunk/readme.txt
r1394400 r1600504 4 4 Donate link: http://goo.gl/QzIZZ 5 5 Requires at least: 3.5 6 Tested up to: 4. 56 Tested up to: 4.7.2 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 22 22 The Administrators can delete/add/update the Users' bookings. 23 23 24 Works with PHP 5.2.12 or higher : please report any issue you find, and any feature you want. I'll try to fix the firsts and to implement the seconds!24 Works with PHP 5.2.12 or higher, and PHP 7.x: please report any issue you find, and any feature you want. I'll try to fix the firsts and to implement the seconds! 25 25 26 26 If any bug found please ask me for support! … … 65 65 66 66 == Changelog == 67 = 0.43 = 68 * responsive design using css 67 69 = 0.42 = 68 70 * User can delete his/her own booking -
wp-fevents-book/trunk/style.css
r882804 r1600504 127 127 #toggletextmail, .btn-csv {width: 304px; height: 30px; vertical-align: middle; padding: 4px 24px;} 128 128 .entry-content .btn-center input { margin: 0;} 129 130 /* ver. 0.43 responsive design using css - div width conteining table (optional) */ 131 .table-responsive {width: 90%; overflow-x:auto; } 132 .table-responsive table {border: #ccc solid 1px;} 133 /* cell instructions (mandatory) */ 134 .table-responsive table td, .table-responsive table th {min-width: 50px; width: 24%; border: #ccc solid 1px; 135 word-break: normal; word-wrap: normal; text-align: center; padding: 1%;} 136 /* images width (optional) */ 137 .table-responsive table td img {max-width: 98%;} 138 /* fix old values */ 139 .wpfevent_table textarea {min-width: 100px !important;} 140 .tdheader {color: black !important; font-weight: bold; text-align: center;} 141 -
wp-fevents-book/trunk/wp-fevents-book.php
r1394400 r1600504 579 579 $btnvad = __( 'Delete my booking!', 'wp-fevents-book' ); 580 580 } 581 $out = '<div style="margin-bottom: 0px; border: 2px solid ' . $evento['Colore'] . '; border-radius: 5px; padding: 5px;">';581 $out = '<div class="table-responsive" style="margin-bottom: 0px; border: 2px solid ' . $evento['Colore'] . '; border-radius: 5px; padding: 5px;">'; 582 582 $out .= '<form name="wpfeventsbookform_' . $eventid . '" method="POST" action="' . $_SERVER["REQUEST_URI"] . '" enctype="multipart/form-data" style="margin-bottom: 0px;">'; 583 583 if ( $isuseradmin ) { … … 589 589 } 590 590 $out .= '<input type="hidden" name="idEvent" value="' . $eventid . '"> 591 <table id="wpfevent_' . $eventid . '" class="wpfevent_table" border="2" width="80%">591 <table id="wpfevent_' . $eventid . '" class="wpfevent_table" > 592 592 <tbody> 593 <tr><t h>' . __( 'Description', 'wp-fevents-book' ) . ':</th><td style="white-space: nowrap; font-weight:bold; font-size:200%; background:' . $evento['Colore'] . '">' . $evento['Descrizione'] . '</td></tr>';593 <tr><td class="tdheader">' . __( 'Description', 'wp-fevents-book' ) . ':</td><td style="white-space: nowrap; font-weight:bold; font-size:200%; background:' . $evento['Colore'] . '">' . $evento['Descrizione'] . '</td></tr>'; 594 594 if ( $exp_date > $today && $exp_date != '' ) { 595 $out .= '<tr><t h style="white-space: nowrap">' . __( 'Date (mm/dd/yyyy)', 'wp-fevents-book' ) . ':</th><td>' . $evento['Data'] . ' <span class="expirewarn">[' . __( 'please subscribe before', 'wp-fevents-book' ) . ' <span class="expired">' . $exp_str . '</span>]</span></td></tr>';595 $out .= '<tr><td class="tdheader">' . __( 'Date (mm/dd/yyyy)', 'wp-fevents-book' ) . ':</td><td>' . $evento['Data'] . ' <span class="expirewarn">[' . __( 'please subscribe before', 'wp-fevents-book' ) . ' <span class="expired">' . $exp_str . '</span>]</span></td></tr>'; 596 596 } else if ( $evento['Data'] != '' ) { 597 $out .= '<tr><t h style="white-space: nowrap">' . __( 'Date (mm/dd/yyyy)', 'wp-fevents-book' ) . ':</th><td>' . $evento['Data'] . '</td></tr>';597 $out .= '<tr><td class="tdheader">' . __( 'Date (mm/dd/yyyy)', 'wp-fevents-book' ) . ':</td><td>' . $evento['Data'] . '</td></tr>'; 598 598 } 599 599 if ( $evento['Luogo'] != '' ) { 600 $out .= '<tr><t h>' . __( 'Place', 'wp-fevents-book' ) . ':</th><td>' . $evento['Luogo'] . '</td></tr>';600 $out .= '<tr><td class="tdheader">' . __( 'Place', 'wp-fevents-book' ) . ':</td><td>' . $evento['Luogo'] . '</td></tr>'; 601 601 } 602 602 if ( $evento['Note'] != '' ) { 603 $out .= '<tr><t h style="white-space: nowrap">' . __( 'Event Info', 'wp-fevents-book' ) . ':</th><td>' . $evento['Note'] . '</td></tr>';603 $out .= '<tr><td class="tdheader">' . __( 'Event Info', 'wp-fevents-book' ) . ':</td><td>' . $evento['Note'] . '</td></tr>'; 604 604 } 605 605 //$out .= 'oggi='.$today.' scadenza='.$exp_date; 606 606 if ( $exp_date < $today && $exp_date != '' ) { 607 $out .= '<tr><t h></th><td style="font-weight:bold; background:' . $evento['Colore'] . '; color: #666666;">' . __( 'Event EXPIRED', 'wp-fevents-book' ) . ' ' . $exp_str . '</td></tr>';607 $out .= '<tr><td></td><td style="font-weight:bold; background:' . $evento['Colore'] . '; color: #666666;">' . __( 'Event EXPIRED', 'wp-fevents-book' ) . ' ' . $exp_str . '</td></tr>'; 608 608 } else { 609 609 $out .= '<tr> 610 <t h>' . __( 'User', 'wp-fevents-book' ) . ':</th>610 <td class="tdheader">' . __( 'User', 'wp-fevents-book' ) . ':</td> 611 611 <td>' . $username . ' <input type="' . $enablesubmit . '" name="cmdSubmit" value="' . $btnval . '" style="background-color:' . $evento['Colore'] . ';">'; 612 612 if ( $idUser != 0 && $usernote != '' ) { … … 621 621 if ( $evento['scelte'] ) { 622 622 $out .= '<tr> 623 <t h valign="top">' . $evento['sceltatxt'] . ':</th>623 <td class="tdheader" valign="top">' . $evento['sceltatxt'] . ':</td> 624 624 <td>'; 625 625 $out .= ' … … 634 634 $tmx = $evento['teamfirst'] + $evento['teamnumbers']; 635 635 $out .= '<tr> 636 <t h valign="top">' . __( 'Team number', 'wp-fevents-book' ) . ':</th>636 <td class="tdheader" valign="top">' . __( 'Team number', 'wp-fevents-book' ) . ':</td> 637 637 <td><input type="number" name="NrUserTeam" value="' . $usteam . '" min="' . $evento['teamfirst'] . '" max="' . $tmx . '"></td> 638 638 </tr>'; 639 639 } 640 640 $out .= '<tr> 641 <t h valign="top">' . __( 'User notes', 'wp-fevents-book' ) . ':</th>641 <td class="tdheader" valign="top">' . __( 'User notes', 'wp-fevents-book' ) . ':</td> 642 642 <td><textarea name="txtComments" rows="3" >' . $usernote . '</textarea></td> 643 643 </tr>'; 644 644 if ( $evento['conferma'] ) { 645 645 $out .= '<tr> 646 <t h valign="top">' . __( 'Confirmed', 'wp-fevents-book' ) . ':</th>646 <td class="tdheader" valign="top">' . __( 'Confirmed', 'wp-fevents-book' ) . ':</td> 647 647 <td><input type="checkbox" name="boolConfrm" /></td> 648 648 </tr>';
Note: See TracChangeset
for help on using the changeset viewer.