diff options
author | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-21 18:20:27 -0500 |
---|---|---|
committer | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-21 18:20:27 -0500 |
commit | 75dddd70a7f004601e0ad4aff214d94be793cd4b (patch) | |
tree | c7f0e2e01e2cfde1cfa996b847924d2bc2971535 /admin/newsreel/functions.php | |
parent | 027b405b1bdeb5bb7f3362ff1d570aa076846bc3 (diff) | |
download | bayonetcms-75dddd70a7f004601e0ad4aff214d94be793cd4b.tar.gz |
(OC) removed markItUps jQuery declaration
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@390 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'admin/newsreel/functions.php')
-rw-r--r-- | admin/newsreel/functions.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/admin/newsreel/functions.php b/admin/newsreel/functions.php index 9e56dce..b3c2d5f 100644 --- a/admin/newsreel/functions.php +++ b/admin/newsreel/functions.php @@ -15,6 +15,7 @@ ul { background-color:#a1a1a1;
border: #CCCCCC solid 1px;
color:#fff;
+ text-align:center;
}
</style>
@@ -53,7 +54,7 @@ $(document).ready(function(){ * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
- function ListSlides(){
+ function EditOrder(){
global $db;
@@ -66,12 +67,13 @@ $(document).ready(function(){ </table>
<ul>";
- $result = $db->Query("SELECT `title`, `slide_id` FROM `bayonet_newsreel` WHERE `visible` = 1 ORDER BY `weight` ASC");
+ $result = $db->Query("SELECT `title`, `slide_id`, `src` FROM `bayonet_newsreel` WHERE `visible` = 1 ORDER BY `weight` ASC");
while(($row = $db->fetch($result))!= false){
- echo "<li id=\"recordsArray_{$row['slide_id']}\">{$row['title']}</li>";
+ echo "<li id=\"recordsArray_{$row['slide_id']}\">{$row['title']}<br /><img src=\"../modules/newsreel/slides/{$row['src']}\" width=\"100px\" /></li>";
}
?>
</ul>
+ Click and drag on a slide to change the order. Wait for confirmation indicating the changes have been saved.
</div>
<?php
}
|