[geeklog-cvs] geeklog-1.3/public_html/layout/Digital_Monochrome/admin/story storyeditor.thtml,1.11,1.12

blaine at iowaoutdoors.org blaine at iowaoutdoors.org
Sun Aug 1 17:37:52 EDT 2004


Update of /var/cvs/geeklog-1.3/public_html/layout/Digital_Monochrome/admin/story
In directory www:/tmp/cvs-serv26876/public_html/layout/Digital_Monochrome/admin/story

Modified Files:
	storyeditor.thtml 
Log Message:
Package of changes to support the Story Archive Feature.

Index: storyeditor.thtml
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/layout/Digital_Monochrome/admin/story/storyeditor.thtml,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** storyeditor.thtml	31 Jul 2004 03:30:37 -0000	1.11
--- storyeditor.thtml	1 Aug 2004 21:37:50 -0000	1.12
***************
*** 3,6 ****
--- 3,9 ----
      var f = obj.form;           // all elements have their parent form in "form"
      var disable = obj.checked;  // Disable when checked
+     if (f.elements["archiveflag"].checked==true && f.elements["storycode11"].checked==false) {
+         f.elements["storycode10"].checked=true;
+     }
      f.elements["storycode10"].disabled=!disable;
      f.elements["storycode11"].disabled=!disable;
***************
*** 13,17 ****
  }
  </script>
!                             <form action="{site_admin_url}/story.php" method="post" enctype="multipart/form-data">
                                  <table border="0" cellspacing="0" cellpadding="3" width="100%">
                                      <tr>
--- 16,20 ----
  }
  </script>
!                             <form name="frmstory" action="{site_admin_url}/story.php" method="post" enctype="multipart/form-data">
                                  <table border="0" cellspacing="0" cellpadding="3" width="100%">
                                      <tr>
***************
*** 74,87 ****
                                              <table border="0" cellspacing="0" cellpadding="3" width="100%" style="border-style:solid;">
                                                  <tr>
!                                                     <td colspan="3" style="padding-left:20px;">Story Management</td>
                                                  <tr>
!                                                     <td width="20%" style="text-align:right;padding-right:5px;">Option:</td>
!                                                     <td width="20%">Enabled:<input type="checkbox" name="archiveflag" value="1" {is_checked2} onclick="enablearchive(this);"></td>
                                                      <td style="text-align:left;">
                                                          <label for="storycode10"> 
!                                                             <input type="radio" name="statuscode" id="storycode10" value="10" {is_checked3} {archivedisabled}>Auto Archive
                                                          </label>  
                                                      <label for="storycode11"> 
!                                                         <input type="radio" name="statuscode" id="storycode11" value="11" {is_checked4} {archivedisabled}>Auto Delete
                                                      </label>
                                                  </tr>
--- 77,90 ----
                                              <table border="0" cellspacing="0" cellpadding="3" width="100%" style="border-style:solid;">
                                                  <tr>
!                                                     <td colspan="3" style="padding-left:20px;">{lang_archivetitle}</td>
                                                  <tr>
!                                                     <td width="20%" style="text-align:right;padding-right:5px;">{lang_option}:</td>
!                                                     <td width="20%">{lang_enabled}:<input type="checkbox" name="archiveflag" value="1" {is_checked2} onclick="enablearchive(this);"></td>
                                                      <td style="text-align:left;">
                                                          <label for="storycode10"> 
!                                                             <input type="radio" name="statuscode" id="storycode10" value="10" {is_checked3} {archivedisabled}>{lang_optionarchive}
                                                          </label>  
                                                      <label for="storycode11"> 
!                                                         <input type="radio" name="statuscode" id="storycode11" value="11" {is_checked4} {archivedisabled}>{lang_optiondelete}
                                                      </label>
                                                  </tr>
***************
*** 89,93 ****
                                                      <td style="text-align:right;vertical-align:top;padding-right:5px;">{lang_date}:</td>
                                                      <td colspan="2">
!                                                         <select name="expire_month" {archivedisabled}>
                                                              {expire_month_options}
                                                          </select>
--- 92,96 ----
                                                      <td style="text-align:right;vertical-align:top;padding-right:5px;">{lang_date}:</td>
                                                      <td colspan="2">
!                                                         <select id="expire_month" name="expire_month" {archivedisabled}>
                                                              {expire_month_options}
                                                          </select>
***************
*** 216,217 ****
--- 219,233 ----
                                  </table>
                              </form>
+ <script>
+ <!-- This code will only be executed by a browser that suppports Javascript -->
+ var jstest = {showarchivedisabled}
+ if (jstest) {
+     document.frmstory.expire_month.disabled=true;
+     document.frmstory.expire_day.disabled=true;
+     document.frmstory.expire_year.disabled=true;
+     document.frmstory.expire_hour.disabled=true;
+     document.frmstory.expire_minute.disabled=true;
+     document.frmstory.storycode10.disabled=true;
+     document.frmstory.storycode11.disabled=true;
+ }
+ </script>
\ No newline at end of file




More information about the geeklog-cvs mailing list