diff -r 6b96085291d7 -r fb7cd02b9848 web/wp-content/plugins/gigs-calendar/tours.ajax.php --- a/web/wp-content/plugins/gigs-calendar/tours.ajax.php Tue Jan 05 09:48:24 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,312 +0,0 @@ -search(null, ($options['tours-sort'] == 'custom' ? '`pos`' : '`name`')); - ?> -
- -
- - - - - - - - - - - - - - fetch() ) : ?> - "> - - - - - - "> - - - - - -
id; ?>name; ?>notes) ) > 40 ) { - echo substr( strip_tags($t->notes), 0, 40 ) . '...'; - } else { - echo strip_tags($t->notes); - } - ?> -
- <?php _e('Edit', $gcd) ?> - - <?php _e('Map', $gcd) ?> - - <?php _e('Delete', $gcd) ?> -
-
- - - - - setupEvents = function() { - - - setupPerformances(); - } - - setupEvents(); - - }(jQuery)); - - - - - name = $_POST['name']; - $t->notes = $_POST['notes']; - - if ( $t->save() ) { - echo '{success:true, tour:' . $t->toJSON() . '}'; - } else { - echo '{success:false}'; - } - break; - case 'getRow': - $t = new tour($_POST['id']); - ?> - "> - id; ?> - name; ?> - notes) ) > 40 ) { - echo substr( strip_tags($t->notes), 0, 40 ) . '...'; - } else { - echo strip_tags($t->notes); - } - ?> - -
- <?php _e('Edit', $gcd) ?> - - <?php _e('Map', $gcd) ?> - - <?php _e('Delete', $gcd) ?> -
- - - "> - - - - delete(); - echo '{"success": ' . ($result ? 'true' : 'false') . ',"action":"delete"' . ($result ? '' : ',"error":"db"') . '}'; - break; - case 'edit': - $t = new tour($_POST['id']); - ?> -
- - - - - - - - - -
-

-
-
- -
-
- - - - - -
-
- - - name = $_POST['name']; - $t->notes = $_POST['notes']; - - $t->save(); - echo '{success:true, tour:' . $t->toJSON() . '}'; - break; - - case 'performance-form': - if ( isset($_POST['id']) ) { - pForm($_POST['id'], false); - } else { - pForm((int) $_POST['count'], true); - } - break; -} -?> \ No newline at end of file