Changeset 374693
- Timestamp:
- 04/19/2011 10:17:20 AM (15 years ago)
- Location:
- simple-faq
- Files:
-
- 4 edited
- 1 copied
-
tags/0.6 (copied) (copied from simple-faq/trunk)
-
tags/0.6/faq.php (modified) (7 diffs)
-
tags/0.6/readme.txt (modified) (2 diffs)
-
trunk/faq.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-faq/tags/0.6/faq.php
r343501 r374693 4 4 Plugin URI: http://www.spidersoft.com.au/2010/simple-faq/ 5 5 Description: Simple plugin which creates editable FAQ on your site 6 Version: 0. 46 Version: 0.6 7 7 Author: Slawomir Jasinski - SpiderSoft 8 8 Author URI: http://www.spidersoft.com.au/ 9 9 License: GPL2 10 10 11 Copyright 2009-201 0Slawomir Jasinski (email : slav123@gmail.com)11 Copyright 2009-2011 Slawomir Jasinski (email : slav123@gmail.com) 12 12 13 13 This program is free software; you can redistribute it and/or modify … … 71 71 $table_name = $wpdb->prefix . "faq"; 72 72 73 $select = "SELECT * FROM {$table_name}ORDER BY answer_date DESC";73 $select = "SELECT * FROM `{$table_name}` ORDER BY answer_date DESC"; 74 74 $all_faq = $wpdb->get_results($select); 75 75 … … 215 215 ?><table class="widefat"> 216 216 <thead> 217 <th scope="col"><? _e("Question") ?></th>218 <th scope="col"><? _e("Created") ?></th>219 <th scope="col"><? _e("Author") ?></th>220 <th scope="col" width="30"><? _e("Edit") ?></th>221 <th scope="col" width="30"><? _e("View"); ?></th>222 <th scope="col" width="30"><? _e("Delete");?></th>217 <th scope="col"><?php _e("Question") ?></th> 218 <th scope="col"><?php _e("Created") ?></th> 219 <th scope="col"><?php _e("Author") ?></th> 220 <th scope="col" width="30"><?php _e("Edit") ?></th> 221 <th scope="col" width="30"><?php _e("View"); ?></th> 222 <th scope="col" width="30"><?php _e("Delete");?></th> 223 223 </thead> 224 224 <tbody> … … 249 249 $table_name = $wpdb->prefix . "faq"; 250 250 251 $row = $wpdb->get_row("SELECT * FROM {$table_name}WHERE id = '$id'");251 $row = $wpdb->get_row("SELECT * FROM `{$table_name}` WHERE id = '$id'"); 252 252 echo '<p>'; 253 253 _e("Question:"); … … 258 258 echo '<br/>'; 259 259 echo $row->answer; 260 echo '<p>' . draw_ico( e_('back to list'), 'Backward.png', 'plugins.php?page=faq') . '</p>';260 echo '<p>' . draw_ico(_e('back to list'), 'Backward.png', 'plugins.php?page=faq') . '</p>'; 261 261 } 262 262 … … 276 276 $id = null; 277 277 } else { 278 $row = $wpdb->get_row("SELECT * FROM {$table_name}WHERE id = '$id'");278 $row = $wpdb->get_row("SELECT * FROM `{$table_name}` WHERE id = '$id'"); 279 279 } 280 280 … … 283 283 ?> 284 284 <form name="form1" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"> 285 <input type="hidden" name="hid" value="<? =$id ?>"/>286 <input type="hidden" name="act" value="<? =$act ?>"/>285 <input type="hidden" name="hid" value="<?php echo $id ?>"/> 286 <input type="hidden" name="act" value="<?php echo $act ?>"/> 287 287 288 288 <p><?php _e("Question:", 'mt_trans_domain' ); ?><br/> 289 <input type="text" name="question" value="<? =$row->question; ?>" size="20" class="large-text"/>289 <input type="text" name="question" value="<?php echo $row->question; ?>" size="20" class="large-text"/> 290 290 <p><?php _e("Answer:", 'mt_trans_domain' ); ?><br/> 291 <textarea name="answer" rows="10" cols="30" class="large-text"><? =$row->answer; ?></textarea>291 <textarea name="answer" rows="10" cols="30" class="large-text"><?php echo $row->answer; ?></textarea> 292 292 </p><hr /> 293 294 <p class="submit"> 295 <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button-primary" /> 296 </p> 297 293 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button-primary" /></p> 298 294 </form> 299 295 <?} -
simple-faq/tags/0.6/readme.txt
r343501 r374693 4 4 Tags: faq, question, answer, simple 5 5 Requires at least: 2.7 6 Tested up to: 3. 0.56 Tested up to: 3.1.1 7 7 Stable tag: 0.5 8 8 … … 39 39 40 40 == Changelog == 41 = 0.6 = 42 * 19/04/2011 43 * removed as shortcodes 44 * extra slashes in quries 41 45 42 46 = 0.5 = -
simple-faq/trunk/faq.php
r343501 r374693 4 4 Plugin URI: http://www.spidersoft.com.au/2010/simple-faq/ 5 5 Description: Simple plugin which creates editable FAQ on your site 6 Version: 0. 46 Version: 0.6 7 7 Author: Slawomir Jasinski - SpiderSoft 8 8 Author URI: http://www.spidersoft.com.au/ 9 9 License: GPL2 10 10 11 Copyright 2009-201 0Slawomir Jasinski (email : slav123@gmail.com)11 Copyright 2009-2011 Slawomir Jasinski (email : slav123@gmail.com) 12 12 13 13 This program is free software; you can redistribute it and/or modify … … 71 71 $table_name = $wpdb->prefix . "faq"; 72 72 73 $select = "SELECT * FROM {$table_name}ORDER BY answer_date DESC";73 $select = "SELECT * FROM `{$table_name}` ORDER BY answer_date DESC"; 74 74 $all_faq = $wpdb->get_results($select); 75 75 … … 215 215 ?><table class="widefat"> 216 216 <thead> 217 <th scope="col"><? _e("Question") ?></th>218 <th scope="col"><? _e("Created") ?></th>219 <th scope="col"><? _e("Author") ?></th>220 <th scope="col" width="30"><? _e("Edit") ?></th>221 <th scope="col" width="30"><? _e("View"); ?></th>222 <th scope="col" width="30"><? _e("Delete");?></th>217 <th scope="col"><?php _e("Question") ?></th> 218 <th scope="col"><?php _e("Created") ?></th> 219 <th scope="col"><?php _e("Author") ?></th> 220 <th scope="col" width="30"><?php _e("Edit") ?></th> 221 <th scope="col" width="30"><?php _e("View"); ?></th> 222 <th scope="col" width="30"><?php _e("Delete");?></th> 223 223 </thead> 224 224 <tbody> … … 249 249 $table_name = $wpdb->prefix . "faq"; 250 250 251 $row = $wpdb->get_row("SELECT * FROM {$table_name}WHERE id = '$id'");251 $row = $wpdb->get_row("SELECT * FROM `{$table_name}` WHERE id = '$id'"); 252 252 echo '<p>'; 253 253 _e("Question:"); … … 258 258 echo '<br/>'; 259 259 echo $row->answer; 260 echo '<p>' . draw_ico( e_('back to list'), 'Backward.png', 'plugins.php?page=faq') . '</p>';260 echo '<p>' . draw_ico(_e('back to list'), 'Backward.png', 'plugins.php?page=faq') . '</p>'; 261 261 } 262 262 … … 276 276 $id = null; 277 277 } else { 278 $row = $wpdb->get_row("SELECT * FROM {$table_name}WHERE id = '$id'");278 $row = $wpdb->get_row("SELECT * FROM `{$table_name}` WHERE id = '$id'"); 279 279 } 280 280 … … 283 283 ?> 284 284 <form name="form1" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"> 285 <input type="hidden" name="hid" value="<? =$id ?>"/>286 <input type="hidden" name="act" value="<? =$act ?>"/>285 <input type="hidden" name="hid" value="<?php echo $id ?>"/> 286 <input type="hidden" name="act" value="<?php echo $act ?>"/> 287 287 288 288 <p><?php _e("Question:", 'mt_trans_domain' ); ?><br/> 289 <input type="text" name="question" value="<? =$row->question; ?>" size="20" class="large-text"/>289 <input type="text" name="question" value="<?php echo $row->question; ?>" size="20" class="large-text"/> 290 290 <p><?php _e("Answer:", 'mt_trans_domain' ); ?><br/> 291 <textarea name="answer" rows="10" cols="30" class="large-text"><? =$row->answer; ?></textarea>291 <textarea name="answer" rows="10" cols="30" class="large-text"><?php echo $row->answer; ?></textarea> 292 292 </p><hr /> 293 294 <p class="submit"> 295 <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button-primary" /> 296 </p> 297 293 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button-primary" /></p> 298 294 </form> 299 295 <?} -
simple-faq/trunk/readme.txt
r343501 r374693 4 4 Tags: faq, question, answer, simple 5 5 Requires at least: 2.7 6 Tested up to: 3. 0.56 Tested up to: 3.1.1 7 7 Stable tag: 0.5 8 8 … … 39 39 40 40 == Changelog == 41 = 0.6 = 42 * 19/04/2011 43 * removed as shortcodes 44 * extra slashes in quries 41 45 42 46 = 0.5 =
Note: See TracChangeset
for help on using the changeset viewer.