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);
}
?> |
|
">
|
|
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);
}
?> |
|
">
|
|
delete();
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;
}
?>