[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm /publisher lonpubdir.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 22 Jun 2006 20:49:19 -0000


albertel		Thu Jun 22 16:49:19 2006 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
    /loncom/publisher	lonpubdir.pm 
  Log:
  - the controls box is cssed now
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.390 loncom/interface/loncommon.pm:1.391
--- loncom/interface/loncommon.pm:1.390	Thu Jun 22 16:31:56 2006
+++ loncom/interface/loncommon.pm	Thu Jun 22 16:48:56 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.390 2006/06/22 20:31:56 albertel Exp $
+# $Id: loncommon.pm,v 1.391 2006/06/22 20:48:56 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3119,7 +3119,7 @@
     my $mail_replied_hover   = '#888855';
     my $mail_other           = '#99BBBB';
     my $mail_other_hover     = '#669999';
-
+    my $table_header         = '#DDDDDD';
     return <<END;
 h1, h2, h3, th { font-family: $sans }
 a:focus { color: red; background: yellow } 
@@ -3333,11 +3333,30 @@
   background: $tabbg;
 }
 
+
+table#LC_cstr_controls {
+  width: 100%;
+  border-collapse: collapse;
+}
+table#LC_cstr_controls tr td {
+  border: 4px solid $pgbg;
+  padding: 4px;
+  text-align: center;
+  background: $tabbg;
+}
+table#LC_cstr_controls tr th {
+  border: 4px solid $pgbg;
+  background: $table_header;
+  text-align: center;
+  font-family: $sans;
+  font-size: smaller;
+}
+
 table#LC_browser {
  
 }
 table#LC_browser tr th {
-  background: #DDDDDD;
+  background: $table_header;
 }
 table#LC_browser tr td {
   padding: 2px;
@@ -3400,8 +3419,8 @@
     my $function = $args->{'function'} || &get_users_function();
     my $domain   = $args->{'domain'}   || &determinedomain();
     my $bgcolor  = $args->{'bgcolor'}  || &designparm($function.'.pgbg',$domain);
-    my $url = join(':',$env{'user.name'},$env{'user.domain'},
-		   $env{'environment.color.timestamp'},
+    my $url = join(':',$env{'user.name'},$env{'user.domain'},time(),
+		   #$env{'environment.color.timestamp'},
 		   $function,$domain,$bgcolor);
 
     $url = '/adm/css/'.&escape($url).'.css';
Index: loncom/publisher/lonpubdir.pm
diff -u loncom/publisher/lonpubdir.pm:1.92 loncom/publisher/lonpubdir.pm:1.93
--- loncom/publisher/lonpubdir.pm:1.92	Thu Jun 22 16:09:41 2006
+++ loncom/publisher/lonpubdir.pm	Thu Jun 22 16:49:19 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Construction Space Directory Lister
 #
-# $Id: lonpubdir.pm,v 1.92 2006/06/22 20:09:41 albertel Exp $
+# $Id: lonpubdir.pm,v 1.93 2006/06/22 20:49:19 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -364,14 +364,14 @@
 				       updc => 'Upload a new document'
                                       );
     $r->print(<<END);
-        <table cellspacing="4" cellpadding="4" width="100%">
+        <table id="LC_cstr_controls">
          <tr>
-          <td bgcolor="#DDDDDD" align="center"><font face="Arial, Helvetica, sans-serif" size="-1"><b>$lt{'acti'}</b></font></td>
-          <td bgcolor="#DDDDDD" align="center"><font face="Arial, Helvetica, sans-serif" size="-1"><b>$lt{'updc'}</b></font></td>
-          <td bgcolor="#DDDDDD" align="center"><font face="Arial, Helvetica, sans-serif" size="-1"><b>$lt{'crea'}</b></font></td>
+          <th>$lt{'acti'}</th>
+          <th>$lt{'updc'}</th>
+          <th>$lt{'crea'}</th>
         </tr>
         <tr>
-         <td bgcolor="#ccddaa" valign="top" align="center">
+         <td>
           <form name="curractions" method="post" action="">
            <select name="dirtask" onchange="currdiract(this.form)">
             <option>$lt{'sela'}</option>
@@ -390,14 +390,14 @@
            <input type="hidden" name="postdata" value="" />
           </form>
          </td>
-         <td bgcolor="#ccddaa" valign="top" align="center">
+         <td>
 	    <form name="upublisher" enctype="multipart/form-data" method="post" action="/adm/upload" target="_parent">
 	      <input type="hidden" name="filename" value="/~$uname$thisdisfn/" />
 	      <input type="file" name="upfile" size="20" />
 	      <input type="button" value="$lt{'uplo'}"  onclick="checkUpload(this.form)" />
 	    </form>
 	 </td>
-	 <td bgcolor="#ccddaa" align="center">
+	 <td>
 	    <form name="fileaction" method="post" action="/adm/cfile" target="_parent">
 	      <span style="white-space: nowrap">
 		<input type="hidden" name="filename" value="/~$uname$thisdisfn/" />