Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changes needed to fix the preview/display problem and to repair badly…

… formatted administration screens (tested on Firefox on Linux)
  • Loading branch information...
commit 24fba2d51bcc4b298939e49595ce170a42b5e6b8 1 parent 14e765a
@joellimardo joellimardo authored
View
52 Spine/lib/SPINE/Handler/Admin/Adminaccess.pm
@@ -172,11 +172,11 @@ sub handler
my $group = undef;
for(@groups) { $group .= qq(<option>$_); }
my $permissions = qq(<input type="checkbox" name="read" value="1"><input type="checkbox" name="write" value="1"><input type="checkbox" name="exec" value="1">);
- $list .= qq(<div name="adminpanel" class="fullpanel"><form action="<?SPINE_Location?>admin/adminaccess/new/" method="post">\n);
- $list .= qq(<div class="panelcel" style="width: 20%"><input type="text" name="section" class="input" value="" size="30">\n</div>);
- $list .= qq(<div class="panelcel" style="width: 10%"><select name="usergroup">$group</select>\n</div><div class="panelcel" style="width: 10%">$permissions\n</div>);
- $list .= qq(<div class="panelcel" style="width: 20%"><input type="submit" value="Create" class="button" name="action"></div>\n</form><div class="spacercel"></div></div>\n);
- # $list .= qq(<tr bgcolor="#ffffff"><form action="<?SPINE_Location?>admin/adminaccess/new/" method="post"><td><input type="text" name="section" class="input" value="" size="30">\n</td><td><select name="usergroup">$group</select>\n</td><td>$permissions\n</td>\n<td><input type="submit" value="Create" class="button" name="action"></td>\n</form><td>&nbsp;</td></tr>\n);
+ $list .= qq(<div name="adminpanel" class="spine-fullpanel"><form action="<?SPINE_Location?>admin/adminaccess/new/" method="post">\n);
+ $list .= qq(<div class="spine-panelcel" style="width: 20%"><input type="text" name="section" class="spine-input" value="" size="30">\n</div>);
+ $list .= qq(<div class="spine-panelcel" style="width: 10%"><select name="usergroup">$group</select>\n</div><div class="spine-panelcel" style="width: 10%">$permissions\n</div>);
+ $list .= qq(<div class="spine-panelcel" style="width: 20%"><input type="submit" value="Create" class="spine-button" name="action"></div>\n</form><div class="spine-spacercel"></div></div>\n);
+ # $list .= qq(<tr bgcolor="#ffffff"><form action="<?SPINE_Location?>admin/adminaccess/new/" method="post"><td><input type="text" name="section" class="spine-input" value="" size="30">\n</td><td><select name="usergroup">$group</select>\n</td><td>$permissions\n</td>\n<td><input type="submit" value="Create" class="spine-button" name="action"></td>\n</form><td>&nbsp;</td></tr>\n);
for(@adminaccess)
{ my %hash = $_->tohash;
my $group = undef;
@@ -184,15 +184,43 @@ sub handler
my @checked = (""," checked");
for(@groups) { my $sel = $hash{"usergroup"} eq $_ ? ' selected' : ''; next if !$_; $group .= qq(<option$sel>$_); }
my $permissions = qq(<input type="checkbox" name="read" value="1"$checked[$perms[0]]><input type="checkbox" name="write" value="1"$checked[$perms[1]]><input type="checkbox" name="exec" value="1"$checked[$perms[2]]>);
- # $list .= qq(<tr bgcolor="#ffffff"><form action="<?SPINE_Location?>admin/adminaccess/save/" method="post"><input type="hidden" name="id" value="$hash{id}">\n<td><input type="text" name="section" class="input" value="$hash{section}" size="30">\n</td><td><select name="usergroup">$group</select>\n</td><td>$permissions\n</td>\n<td><input type="submit" value="Save" class="button" name="action"></td>\n</form><form action="<?SPINE_Location?>admin/adminaccess/remove/" method="post"><input type="hidden" name="name" value="$hash{name}"><input type="hidden" name="id" value="$hash{id}">\n<td><input type="submit" value="Delete" class="button" name="action"></td>\n</form></tr>\n);
- $list .= qq(<div name="adminpanel" class="fullpanel"><form action="<?SPINE_Location?>admin/adminaccess/save/" method="post">);
- $list .= qq(<input type="hidden" name="id" value="$hash{id}">\n<div class="panelcel" style="width: 20%"><input type="text" name="section" class="input" value="$hash{section}" size="30">\n</div>);
- $list .= qq(<div class="panelcel" style="width: 10%"><select name="usergroup">$group</select>\n</div><div class="panelcel" style="width: 10%">$permissions\n</div>\n);
- $list .= qq(<div class="panelcel" style="width: 20%"><input type="submit" value="Save" class="button" name="action">\n</form><form action="<?SPINE_Location?>admin/adminaccess/remove/" method="post">);
- $list .= qq(<input type="hidden" name="name" value="$hash{name}"><input type="hidden" name="id" value="$hash{id}">\n<input type="submit" value="Delete" class="button" name="action"></div\n</form><div class="spacercel"></div></div>\n);
+ $list .=<<EOF;
+<div name="adminpanel" class="spine-fullpanel">
+ <div style="width:512px">
+ <form action="<?SPINE_Location?>admin/adminaccess/save/" method="post">
+ <input type="hidden" name="id" value="$hash{id}">
+ <div class="spine-panelcel" style="width:195px">
+ <input type="text" name="section" class="spine-input" value="$hash{section}" size="30"></div>
+ <div class="spine-panelcel" style="width:93px">
+ <select name="usergroup">$group</select>
+ </div>
+ <div class="spine-panelcel" style="width:95px">$permissions</div>
+ <div class="spine-panelcel" style="width:25px">
+ <input type="image" alt="Save" src="/images/save.png" name="action">
+ </div>
+ </form>
+ </div>
+ <div style="width:50px;float:left;">
+ <form action="<?SPINE_Location?>admin/adminaccess/remove/" method="post">
+ <input type="hidden" name="name" value="$hash{name}"><input type="hidden" name="id" value="$hash{id}">
+ <input type="image" alt="Delete" src="/images/delete.png" name="action">
+ </div>
+ </form><div class="spine-spacercel"></div>
+ </div>
+</div>
+
+EOF
+=head1
+ $list .= qq(<div name="adminpanel" class="spine-fullpanel"><form action="<?SPINE_Location?>admin/adminaccess/save/" method="post">);
+ $list .= qq(<input type="hidden" name="id" value="$hash{id}">\n<div class="spine-panelcel" style="width: 20%"><input type="text" name="section" class="spine-input" value="$hash{section}" size="30">\n</div>);
+ $list .= qq(<div class="spine-panelcel" style="width: 10%"><select name="usergroup">$group</select>\n</div><div class="spine-panelcel" style="width: 10%">$permissions\n</div>\n);
+ $list .= qq(<div class="spine-panelcel" style="width: 20%"><input type="image" alt="Save" src="/images/save.png" name="action">\n</form><form action="<?SPINE_Location?>admin/adminaccess/remove/" method="post">);
+ $list .= qq(<input type="hidden" name="name" value="$hash{name}"><input type="hidden" name="id" value="$hash{id}">\n<input type="image" alt="Delete" src="/images/delete.png" name="action"></div\n</form><div class="spine-spacercel"></div></div>\n);
+=cut
+
}
$body =~ s/\$list/$list/gmx;
- if ($error) { $error = qq(<p class="error">$error</p>); }
+ if ($error) { $error = qq(<p class="spine-error">$error</p>); }
$body =~ s/\$error/$error/gmx;
$content->body($body);
return $content;
View
60 Spine/lib/SPINE/Handler/Admin/File.pm
@@ -244,34 +244,34 @@ sub handler
my $datesort = $sort ne "date" ? "date" : "dater";
my $sizesort = $sort ne "size" ? "size" : "sizer";
my $filenamesort = $sort ne "filename" ? "filename" : "filenamer";
- if ($error) { $error = qq(<p class="error">$error</p>); }
+ if ($error) { $error = qq(<p class="spine-error">$error</p>); }
$list = <<"EOF";
-<div class="dialog" id="upload"><img border="0" align="right" valign="top" src="/images/delete.png" onclick="\$('#upload').hide();"><br><form name="uploadform" method="post" action="<?SPINE_Location?>admin/file" enctype="multipart/form-data">&nbsp;&nbsp;Upload in path : $path&nbsp;&nbsp;<input type="hidden" name="path" value="$path"><input type="hidden" name="action" value="upload"><input type="file" name="filename">&nbsp;<input type="submit" class="button" value="Upload"></form></div>
-<div class="dialog" id="createfolder"><img border="0" align="right" valign="top" src="/images/delete.png" onclick="\$('#createfolder').hide();"><br><form name="createform" method="post" action="<?SPINE_Location?>admin/file" enctype="multipart/form-data">&nbsp;&nbsp;Create Folder in path : $path&nbsp;&nbsp;<input type="hidden" name="path" value="$path"><input type="hidden" name="action" value="createfolder"><input type="hidden" name="filename" value=""><input type="text" name="foldername">&nbsp;<input type="submit" class="button" value="Create"></form></div>
-<div class="dialog" id="copy"><img border="0" align="right" valign="top" src="/images/delete.png" onclick="\$('#copy').hide();"><br><form name="copyform" method="post" action="<?SPINE_Location?>admin/file" enctype="multipart/form-data">&nbsp;&nbsp;Copy <input type="text" name="filefield" value="" disabled>&nbsp; to &nbsp;<input type="hidden" name="path" value="$path"><input type="hidden" name="action" value="copy"><input type="text" name="target"><input type="hidden" name="filename" value="">&nbsp;<input type="submit" class="button" value="Copy" onClick='document.copyform.filename.value = document.myform.filename.value; return true;'></form></div>
-<div class="dialog" id="rename"><img border="0" align="right" valign="top" src="/images/delete.png" onclick="\$('#rename').hide();"><br><form name="renameform" method="post" action="<?SPINE_Location?>admin/file" enctype="multipart/form-data">&nbsp;&nbsp;Rename <input type="text" name="filefield" value="" disabled>&nbsp; to &nbsp;<input type="hidden" name="path" value="$path"><input type="hidden" name="action" value="rename"><input type="text" name="target"><input type="hidden" name="filename" value="">&nbsp;<input type="submit" class="button" value="Rename" onClick='document.renameform.filename.value = document.myform.filename.value; return true;'></form></div>
-<div class="dialog" id="delete"><img border="0" align="right" valign="top" src="/images/delete.png" onclick="\$('#delete').hide();"><br><form name="deleteform" method="post" action="<?SPINE_Location?>admin/file" enctype="multipart/form-data">&nbsp;&nbsp;Delete <input type="text" name="filefield" value="" disabled><input type="hidden" name="path" value="$path"><input type="hidden" name="action" value="delete"><input type="hidden" name="filename" value="">&nbsp;<input type="submit" class="button" value="Delete" onClick='document.deleteform.filename.value = document.myform.filename.value; return true;'></form></div>
+<div class="spine-dialog" id="upload"><img border="0" align="right" valign="top" src="/images/delete.png" onclick="\$('#upload').hide();"><br><form name="uploadform" method="post" action="<?SPINE_Location?>admin/file" enctype="multipart/form-data">&nbsp;&nbsp;Upload in path : $path&nbsp;&nbsp;<input type="hidden" name="path" value="$path"><input type="hidden" name="action" value="upload"><input type="file" name="filename">&nbsp;<input type="submit" class="spine-button" value="Upload"></form></div>
+<div class="spine-dialog" id="createfolder"><img border="0" align="right" valign="top" src="/images/delete.png" onclick="\$('#createfolder').hide();"><br><form name="createform" method="post" action="<?SPINE_Location?>admin/file" enctype="multipart/form-data">&nbsp;&nbsp;Create Folder in path : $path&nbsp;&nbsp;<input type="hidden" name="path" value="$path"><input type="hidden" name="action" value="createfolder"><input type="hidden" name="filename" value=""><input type="text" name="foldername">&nbsp;<input type="submit" class="spine-button" value="Create"></form></div>
+<div class="spine-dialog" id="copy"><img border="0" align="right" valign="top" src="/images/delete.png" onclick="\$('#copy').hide();"><br><form name="copyform" method="post" action="<?SPINE_Location?>admin/file" enctype="multipart/form-data">&nbsp;&nbsp;Copy <input type="text" name="filefield" value="" disabled>&nbsp; to &nbsp;<input type="hidden" name="path" value="$path"><input type="hidden" name="action" value="copy"><input type="text" name="target"><input type="hidden" name="filename" value="">&nbsp;<input type="submit" class="spine-button" value="Copy" onClick='document.copyform.filename.value = document.myform.filename.value; return true;'></form></div>
+<div class="spine-dialog" id="rename"><img border="0" align="right" valign="top" src="/images/delete.png" onclick="\$('#rename').hide();"><br><form name="renameform" method="post" action="<?SPINE_Location?>admin/file" enctype="multipart/form-data">&nbsp;&nbsp;Rename <input type="text" name="filefield" value="" disabled>&nbsp; to &nbsp;<input type="hidden" name="path" value="$path"><input type="hidden" name="action" value="rename"><input type="text" name="target"><input type="hidden" name="filename" value="">&nbsp;<input type="submit" class="spine-button" value="Rename" onClick='document.renameform.filename.value = document.myform.filename.value; return true;'></form></div>
+<div class="spine-dialog" id="delete"><img border="0" align="right" valign="top" src="/images/delete.png" onclick="\$('#delete').hide();"><br><form name="deleteform" method="post" action="<?SPINE_Location?>admin/file" enctype="multipart/form-data">&nbsp;&nbsp;Delete <input type="text" name="filefield" value="" disabled><input type="hidden" name="path" value="$path"><input type="hidden" name="action" value="delete"><input type="hidden" name="filename" value="">&nbsp;<input type="submit" class="spine-button" value="Delete" onClick='document.deleteform.filename.value = document.myform.filename.value; return true;'></form></div>
$error
-<div name="adminpanel" class="fullpanel">
-<div class="panelcel" style="width: 30%"><form name="myform" method="post">Path : $path
+<div name="adminpanel" class="spine-fullpanel">
+<div class="spine-panelcel" style="width: 30%"><form name="myform" method="post">Path : $path
<input type="hidden" name="path" value="$path"><input type="hidden" name="filename" value=""></div>
-<div class="panelcel" style="width: 40%">
+<div class="spine-panelcel" style="width: 40%">
<a href="#" onclick="\$('#createfolder').hide(); \$('#rename').hide(); \$('#copy').hide(); \$('#delete').hide(); \$('#upload').toggle(); return false;">Upload File</a>
&nbsp;<a href="#" onclick="\$('#createfolder').toggle(); \$('#rename').hide(); \$('#copy').hide(); \$('#delete').hide(); \$('#upload').hide(); return false;">Create Folder</a>
&nbsp;<a href="#" onclick="\$('#createfolder').hide(); \$('#rename').hide(); \$('#copy').hide(); \$('#delete').hide(); \$('#upload').toggle(); document.renameform.filefield.value = '$path/'+document.myform.filename.value; return false;">Rename</a>
&nbsp;<a href="#" onclick="\$('#createfolder').hide(); \$('#rename').hide(); \$('#copy').toggle(); \$('#delete').hide(); \$('#upload').hide(); document.copyform.filefield.value = '$path/'+document.myform.filename.value; return false;">Copy</a>
&nbsp;<a href="#" onclick="\$('#createfolder').hide(); \$('#rename').hide(); \$('#copy').hide(); \$('#delete').toggle(); \$('#upload').hide(); document.deleteform.filefield.value = '$path/'+document.myform.filename.value;return false;">Delete</a>
</div>
-<div class="spacercel"></div>
+<div class="spine-spacercel"></div>
</div>
-<div name="adminpanel" class="fullpanel">
-<div class="panelcel" style="width: 35%">
+<div name="adminpanel" class="spine-fullpanel">
+<div class="spine-panelcel" style="width: 35%">
<a href="<?SPINE_Location?>admin/file/?path=$path&sort=$filenamesort">Filename</a></div>
-<div class="panelcel" style="width: 10%"><a href="<?SPINE_Location?>admin/file/?path=$path&sort=$sizesort">Size</a></div>
-<div class="panelcel" style="width: 20%"><a href="<?SPINE_Location?>admin/file/?path=$path&sort=$datesort">Date</a></div>
-<div class="spacercel"></div>
+<div class="spine-panelcel" style="width: 10%"><a href="<?SPINE_Location?>admin/file/?path=$path&sort=$sizesort">Size</a></div>
+<div class="spine-panelcel" style="width: 20%"><a href="<?SPINE_Location?>admin/file/?path=$path&sort=$datesort">Date</a></div>
+<div class="spine-spacercel"></div>
</div>
EOF
@@ -281,13 +281,13 @@ EOF
$backdir =~ s/^(.*)\/.*$/$1/mx;
$list .=
<<"EOF";
-<div name="adminpanel" class="fullpanel unselected">
-<div class="panelcel" style="width: 35%">
+<div name="adminpanel" class="spine-fullpanel unselected">
+<div class="spine-panelcel" style="width: 35%">
<input type="radio" disabled>
<a href="<?SPINE_Location?>admin/file/?path=$backdir"><img src="/images/folder.jpg" border="0"> ..</a></div>
-<div class="panelcel" style="width: 10%">-</div>
-<div class="panelcel" style="width: 20%">-</div>
-<div class="spacercel"></div>
+<div class="spine-panelcel" style="width: 10%">-</div>
+<div class="spine-panelcel" style="width: 20%">-</div>
+<div class="spine-spacercel"></div>
</div>
EOF
@@ -298,26 +298,26 @@ EOF
{ if ($files{$_}{type} eq "file.jpg")
{ $list .=
<<"EOF";
-<div name="adminpanel" class="fullpanel">
-<div class="panelcel" style="width: 35%">
+<div name="adminpanel" class="spine-fullpanel">
+<div class="spine-panelcel" style="width: 35%">
<input type="radio" name="radiobutton" onClick='document.myform.filename.value = "$_"; document.myform.radiobutton[$i].checked = true;' value="$_">
<img src="/images/$files{$_}{type}" border="0"> $_</div>
-<div class="panelcel" style="width: 10%">$files{$_}{size}</div>
-<div class="panelcel" style="width: 20%">$files{$_}{localtime}</div>
-<div class="spacercel"></div>
+<div class="spine-panelcel" style="width: 10%">$files{$_}{size}</div>
+<div class="spine-panelcel" style="width: 20%">$files{$_}{localtime}</div>
+<div class="spine-spacercel"></div>
</div>
EOF
} else
{ $list .=
<<"EOF";
-<div name="adminpanel" class="fullpanel unselected">
-<div class="panelcel" style="width: 35%">
+<div name="adminpanel" class="spine-fullpanel unselected">
+<div class="spine-panelcel" style="width: 35%">
<input type="radio" name="radiobutton" value="$i" disabled>
<a href="<?SPINE_Location?>admin/file/?path=$path/$_"><img src="/images/$files{$_}{type}" border="0"> $_</a></div>
-<div class="panelcel" style="width: 10%">-</div>
-<div class="panelcel" style="width: 20%">$files{$_}{localtime}</div>
-<div class="spacercel"></div>
+<div class="spine-panelcel" style="width: 10%">-</div>
+<div class="spine-panelcel" style="width: 20%">$files{$_}{localtime}</div>
+<div class="spine-spacercel"></div>
</div>
EOF
View
55 Spine/lib/SPINE/Handler/Admin/Filetypes.pm
@@ -164,21 +164,56 @@ sub handler
my @filetypes = @{$attribute_dbi->get({section=>"mimetype", name=>"content"})};
my $list = undef;
- $list .= qq(<div name="adminpanel" class="fullpanel"><form action="<?SPINE_Location?>admin/filetypes/new/" method="post">\n);
- $list .= qq(<div class="panelcel" style="width: 10%"><input type="text" name="attr" class="input" value="extension" size="15">\n</div>);
- $list .= qq(<div class="panelcel" style="width: 20%"><input type="text" name="value" class="input" value="mime/type" size="30">\n</div>);
- $list .= qq(<div class="panelcel" style="width: 20%"><input type="submit" value="Create" class="button" name="action"></div>\n</form><div class="spacercel"></div></div>\n);
+ $list .=<<EOF;
+<div name="adminpanel" class="spine-fullpanel">
+ <form action="<?SPINE_Location?>admin/filetypes/new/" method="post">
+ <div class="spine-panelcel" style="width:120px">
+ <input type="text" name="attr" class="spine-input" value="extension" size="15"></div>
+ <div class="spine-panelcel" style="width:195px">
+ <input type="text" name="value" class="spine-input" value="mime/type" size="30"></div>
+ <div class="spine-panelcel" style="width:50px">
+ <input type="submit" value="Create" class="spine-button" name="action"></div>
+ </form>
+<div class="spine-spacercel"></div>
+</div>
+EOF
+
for(@filetypes)
{ my %hash = $_->tohash;
- $list .= qq(<div name="adminpanel" class="fullpanel"><form action="<?SPINE_Location?>admin/filetypes/save/" method="post">);
+
+ $list .=<<EOF;
+<div name="adminpanel" class="spine-fullpanel">
+ <div style="float:left;">
+ <form action="<?SPINE_Location?>admin/filetypes/save/" method="post">
+ <input type="hidden" name="id" value="$hash{id}">
+ <div class="spine-panelcel" style="width: 120px">
+ <input type="text" name="attr" class="spine-input" value="$hash{attr}" size="15"></div>
+ <div class="spine-panelcel" style="width:195px">
+ <input type="text" name="value" class="spine-input" value="$hash{value}" size="30"></div>
+ <div class="spine-panelcel" style="width: 25px">
+ <input type="image" alt="Save" src="/images/save.png" name="action"></div>
+ </form>
+ </div>
+ <div style="float:left;width:25px">
+ <form action="<?SPINE_Location?>admin/filetypes/remove/" method="post">
+ <input type="hidden" name="id" value="$hash{id}">
+ <input type="image" alt="Delete" src="/images/delete.png" name="action">
+ </div>
+ </div</form><div class="spine-spacercel"></div>
+</div>
+EOF
+
+=head1
+ $list .= qq(<div name="adminpanel" class="spine-fullpanel"><form action="<?SPINE_Location?>admin/filetypes/save/" method="post">);
$list .= qq(<input type="hidden" name="id" value="$hash{id}">\n);
- $list .= qq(<div class="panelcel" style="width: 10%"><input type="text" name="attr" class="input" value="$hash{attr}" size="15">\n</div>);
- $list .= qq(<div class="panelcel" style="width: 20%"><input type="text" name="value" class="input" value="$hash{value}" size="30">\n</div>);
- $list .= qq(<div class="panelcel" style="width: 20%"><input type="submit" value="Save" class="button" name="action">\n</form><form action="<?SPINE_Location?>admin/filetypes/remove/" method="post">);
- $list .= qq(<input type="hidden" name="id" value="$hash{id}">\n<input type="submit" value="Delete" class="button" name="action"></div\n</form><div class="spacercel"></div></div>\n);
+ $list .= qq(<div class="spine-panelcel" style="width: 10%"><input type="text" name="attr" class="spine-input" value="$hash{attr}" size="15">\n</div>);
+ $list .= qq(<div class="spine-panelcel" style="width: 20%"><input type="text" name="value" class="spine-input" value="$hash{value}" size="30">\n</div>);
+ $list .= qq(<div class="spine-panelcel" style="width: 20%"><input type="submit" value="Save" class="spine-button" name="action">\n</form><form action="<?SPINE_Location?>admin/filetypes/remove/" method="post">);
+ $list .= qq(<input type="hidden" name="id" value="$hash{id}">\n<input type="submit" value="Delete" class="spine-button" name="action"></div\n</form><div class="spine-spacercel"></div></div>\n);
+=cut
}
$body =~ s/\$list/$list/gmx;
- if ($error) { $error = qq(<p class="error">$error</p>); }
+ if ($error) { $error = qq(<p class="spine-error">$error</p>); }
$body =~ s/\$error/$error/gmx;
$content->body($body);
return $content;
View
18 Spine/lib/SPINE/Handler/Admin/Language.pm
@@ -68,10 +68,10 @@ sub handler
{ $selected .= qq(<option value="$_">$_); }
$body .= <<"EOF";
-<div name="adminpanel" class="fullpanel">\n
+<div name="adminpanel" class="spine-fullpanel">\n
<form action="<?SPINE_Location?>admin/language/" method="post">\n
-<b>Change language</b><br><input type="submit" value="Load" class="button">&nbsp;<select name="lang">$selected</select>\n
-</form></div><div name="adminpanel" class="fullpanel"><hr width="95%"></div>\n
+<b>Change language</b><br><input type="submit" value="Load" class="spine-button">&nbsp;<select name="lang">$selected</select>\n
+</form></div><div name="adminpanel" class="spine-fullpanel"><hr width="95%"></div>\n
EOF
$lang ||= "en";
@@ -88,16 +88,16 @@ EOF
for(@attributes)
{ my %hash = $_->tohash;
$body .= <<"EOF";
-<div name="adminpanel" class="fullpanel">
+<div name="adminpanel" class="spine-fullpanel">
<form action="<?SPINE_Location?>admin/language/" method="post">
<input type="hidden" name="id" value="$hash{id}">
<input type="hidden" name="lang" value="$lang">
<input type="hidden" name="attr" value="$hash{attr}">
-<div class="panelcel" style="padding-right: 2px"><input type="text" class="input" name="name" value="$hash{name}"></div>
-<div class="panelcel" style="padding-right: 2px"><input type="text" class="input" name="value" value="$hash{value}" size="60"></div>
-<div class="panelcel" style="padding-right: 2px"><input type="image" name="save" src="/images/save.png"></div>
-<div class="panelcel" style="padding-right: 2px"><input type="image" name="delete" src="/images/delete.png"></form></div>
-<div class="spacercel"></div>
+<div class="spine-panelcel" style="padding-right: 2px;width:195px"><input type="text" class="spine-input" name="name" value="$hash{name}"></div>
+<div class="spine-panelcel" style="padding-right: 2px;width:395px"><input type="text" class="spine-input" name="value" value="$hash{value}" size="60"></div>
+<div class="spine-panelcel" style="padding-right: 2px;width:25;x"><input type="image" name="save" src="/images/save.png"></div>
+<div class="spine-panelcel" style="padding-right: 2px;width:25px;"><input type="image" name="delete" src="/images/delete.png"></form></div>
+<div class="spine-spacercel"></div>
</div>
EOF
View
16 Spine/lib/SPINE/Handler/Admin/Macro.pm
@@ -198,21 +198,21 @@ sub handler
$hash{macrovalue} =~ s/\"/&quot;/gmx;
$list .=<<EOF;
- <div name="adminpanel" class="_spine_fullpanel">
+ <div name="adminpanel" class="spine-fullpanel">
<div style="float:left;width:412px;">
<form action="<?SPINE_Location?>admin/macro/new" method="post">
<input type="hidden" name="action" value="save" />
<input type="hidden" name="name" value="$hash{'name'}" />
<input type="hidden" name="id" value="$hash{'id'}" />
- <div class="_spine_panelcel" style="width:195px">
- <input type="text" class="_spine_input" name="key"
+ <div class="spine-panelcel" style="width:195px">
+ <input type="text" class="spine-input" name="key"
value="$hash{'macrokey'}"
size="30" /></div>
- <div class="_spine_panelcel" style="width:195px">
- <input type="text" class="_spine_input" name="value"
+ <div class="spine-panelcel" style="width:195px">
+ <input type="text" class="spine-input" name="value"
value="$hash{'macrovalue'}"
size="30"/></div>
- <div class="_spine_panelcel" style="width:10px;background-color:orange;">
+ <div class="spine-panelcel" style="width:10px;background-color:orange;">
<input type="image" src="/images/save.png" alt="Save" name="action" style="padding:0px" />
</form></div>
</div>
@@ -221,12 +221,12 @@ sub handler
method="post">
<input type="hidden" name="name" value="$hash{'name'}" />
<input type="hidden" name="id" value="$hash{'id'}" />
- <div class="_spine_panelcel" style="width:10px;background-color:pink;">
+ <div class="spine-panelcel" style="width:10px;background-color:pink;">
<input type="image" src="/images/delete.png" alt="Delete"
name="action" style="padding:0px" /></div>
</form>
</div>
- <div class="_spine_spacercel"></div>
+ <div class="spine-spacercel"></div>
</div><!-- adminpanel -->
EOF
View
26 Spine/lib/SPINE/Handler/Admin/Message.pm
@@ -270,12 +270,12 @@ sub handler
for(@clist) { my $sel = $messagegroup->content eq $_ ? ' selected' : ''; $contentlist .= qq(<option value="$_"$sel>$_\n); }
$contentlist = qq(<select name="content">$contentlist</select>);
- $data .= qq(<div name="adminpanel" class="_spine_fullpanel"><form method="post" action="<?SPINE_Location?>admin/message/create/">\n<input type="hidden" name="mgroup" value=").$messagegroup->name.qq(">\n<input type="hidden" name="parent" value="$parent">);
- $data .= qq(<div class="_spine_panelcel" style="width: 25%"><input type="text" name="subject" class="_spine_input" value="Subject" size="35"></div>\n);
- $data .= qq(<div class="_spine_panelcel" style="width: 15%"><input type="text" name="owner" value="Owner" class="_spine_input" size="20"></div>);
- $data .= qq(<div class="_spine_panelcel" style="width: 15%">&nbsp;</div>);
- $data .= qq(<div class="_spine_panelcel" style="width: 5%"><input type="image" name="save" src="/images/save.png" title="Create Message"></div></form>);
- $data .= qq(<div class="_spine_spacercel"></div></div>);
+ $data .= qq(<div name="adminpanel" class="spine-fullpanel"><form method="post" action="<?SPINE_Location?>admin/message/create/">\n<input type="hidden" name="mgroup" value=").$messagegroup->name.qq(">\n<input type="hidden" name="parent" value="$parent">);
+ $data .= qq(<div class="spine-panelcel" style="width: 25%"><input type="text" name="subject" class="spine-input" value="Subject" size="35"></div>\n);
+ $data .= qq(<div class="spine-panelcel" style="width: 15%"><input type="text" name="owner" value="Owner" class="spine-input" size="20"></div>);
+ $data .= qq(<div class="spine-panelcel" style="width: 15%">&nbsp;</div>);
+ $data .= qq(<div class="spine-panelcel" style="width: 5%"><input type="image" name="save" src="/images/save.png" title="Create Message"></div></form>);
+ $data .= qq(<div class="spine-spacercel"></div></div>);
if ( ($user eq 'admin' || #User is admin
$messagegroup->owner eq $user || #User is owner of content
$readwperms) || #Style is world readable
@@ -287,20 +287,20 @@ sub handler
my @replies = @{ $message_dbi->get({mgroup=>$hash{mgroup},parent=>$hash{id}}) } ;
my $count = @replies;
$count ||= 0;
- $data .= qq(<div name="adminpanel" class="_spine_fullpanel"><form action="<?SPINE_Location?>admin/message/save/" method="post">);
- $data .= qq(<div class="_spine_panelcel" style="width: 25%"><input type="text" name="subject" class="_spine_input" size="35" value="$hash{subject}"></div>);
- $data .= qq(<div class="_spine_panelcel" style="width: 15%"><input type="text" name="owner" class="_spine_input" size="20" value="$hash{owner}"></div>);
- $data .= qq(<div class="_spine_panelcel" style="width: 15%">$hash{mdate}</div><input type="hidden" name="id" value="$hash{id}">\n<input type="hidden" name="name" value="$hash{mgroup}">);
- $data .= qq(<input type="hidden" name="parent" value="$hash{parent}"><div class="_spine_panelcel" style="width: 10%"><input type="image" name="save" src="/images/save.png" style="padding-left: 2px" title="Save Message">);
+ $data .= qq(<div name="adminpanel" class="spine-fullpanel"><form action="<?SPINE_Location?>admin/message/save/" method="post">);
+ $data .= qq(<div class="spine-panelcel" style="width: 25%"><input type="text" name="subject" class="spine-input" size="35" value="$hash{subject}"></div>);
+ $data .= qq(<div class="spine-panelcel" style="width: 15%"><input type="text" name="owner" class="spine-input" size="20" value="$hash{owner}"></div>);
+ $data .= qq(<div class="spine-panelcel" style="width: 15%">$hash{mdate}</div><input type="hidden" name="id" value="$hash{id}">\n<input type="hidden" name="name" value="$hash{mgroup}">);
+ $data .= qq(<input type="hidden" name="parent" value="$hash{parent}"><div class="spine-panelcel" style="width: 10%"><input type="image" name="save" src="/images/save.png" style="padding-left: 2px" title="Save Message">);
$data .= qq(<input type="image" name="delete" src="/images/delete.png" title="Delete Message" style="padding-left: 2px">\n<img src="/images/preferences.png" style="padding-left: 2px" onclick="o=document.getElementById('messagerow$hash{id}'); if(o.style.display=='inline'){o.style.display='none';}else{o.style.display='inline';}"></div>\n);
- $data .= qq(<div class="_spine_spacercel"></div></div>);
+ $data .= qq(<div class="spine-spacercel"></div></div>);
my $parentbit = "";
my $parentmessage = shift @{ $message_dbi->get({mgroup=>$hash{mgroup},id=>$hash{parent}, count=>1}) } ;
if ($parentmessage)
{ my %hash = $parentmessage->tohash;
$parentbit = qq(<br>Reply to message by <a href="<?SPINE_Location?>admin/message/edit/?name=$hash{mgroup}&id=$hash{id}">$hash{owner} : $hash{subject}</a>);
}
- $data .= qq(<div name="adminpanel" class="_spine_fullpanel" id="messagerow$hash{id}" style="height: auto; display:none"><textarea cols="120" rows="20" class="_spine_input" name="body">$hash{body}</textarea><br>Message Replies : <a href="<?SPINE_Location?>admin/message/edit/?name=$hash{mgroup}&parent=$hash{id}">$count</a>$parentbit</form></div>);
+ $data .= qq(<div name="adminpanel" class="spine-fullpanel" id="messagerow$hash{id}" style="height: auto; display:none"><textarea cols="120" rows="20" class="spine-input" name="body">$hash{body}</textarea><br>Message Replies : <a href="<?SPINE_Location?>admin/message/edit/?name=$hash{mgroup}&parent=$hash{id}">$count</a>$parentbit</form></div>);
}
my $mgroup = $messagegroup->name;
View
4 Spine/lib/SPINE/Handler/Admin/Navbar.pm
@@ -313,7 +313,7 @@ sub handler
$body =~ s/\$style/$stylelist/gmx if ref $edit_navbar;
$body =~ s/\$separator/$separator/gmx;
$body =~ s/\$position/$lastposition/gmx;
- if ($ierror) { $ierror = qq(<p class="error">$ierror</p>); }
+ if ($ierror) { $ierror = qq(<p class="spine-error">$ierror</p>); }
$body =~ s/\$error/$ierror/gmx;
my $buttons = "";
my $button_content = shift @{$content_dbi->get({name=>".administration/navbar-button", count=>1})};
@@ -373,7 +373,7 @@ sub handler
$body =~ s/\$type/navbar/gmx;
$body =~ s/\$label/navigation bar/gmx;
}
- if ($error) { $error = qq(<p class="error">$error</p>); }
+ if ($error) { $error = qq(<p class="spine-error">$error</p>); }
$body =~ s/\$error/$error/gmx;
$content->body($body);
return $content;
View
12 Spine/lib/SPINE/Handler/Admin/Statistics.pm
@@ -154,8 +154,8 @@ sub handler
for (@statlist)
{ my %hash = %{$_};
my $percentage = sprintf("%.2f",( ( $hash{number} / $ctotal ) * 100 ) );
- $list .= qq(<div name="adminpanel" class="fullpanel"><div class="panelcel" style="width: 45%; height: auto">$hash{$stat}</div>\n);
- $list .= qq(<div class="panelcel" style="width: auto"><img src="/images/dot.jpg" style="border: 1px solid #888888" width="$percentage" height="10">&nbsp;$hash{number} ($percentage%)</div><div class="spacercel"></div></div>\n);
+ $list .= qq(<div name="adminpanel" class="spine-fullpanel"><div class="spine-panelcel" style="width: 45%; height: auto">$hash{$stat}</div>\n);
+ $list .= qq(<div class="spine-panelcel" style="width: auto"><img src="/images/dot.jpg" style="border: 1px solid #888888" width="$percentage" height="10">&nbsp;$hash{number} ($percentage%)</div><div class="spine-spacercel"></div></div>\n);
}
$body =~ s/\$${stat}list/$list/gxm;
$body =~ s/\$name/$name/gmx;
@@ -169,7 +169,7 @@ sub handler
for my $lstat (@statlist)
{ my %hash = %{$lstat};
my $percentage = sprintf("%.2f",( ( $hash{number} / $ctotal ) * 100 ) );
- $datelist .= qq(<div name="adminpanel" class="fullpanel"><div class="panelcel" style="width: 45%; height: auto">$hash{"$stat"}</div><div class="panelcel" style="width: 45%; height: auto"><img src="/images/dot.jpg" style="border: 1px solid #888888" width="$percentage" height="10">&nbsp;$hash{number} ($percentage%)</div><div class="spacercel"></div></div>\n);
+ $datelist .= qq(<div name="adminpanel" class="spine-fullpanel"><div class="spine-panelcel" style="width: 45%; height: auto">$hash{"$stat"}</div><div class="spine-panelcel" style="width: 45%; height: auto"><img src="/images/dot.jpg" style="border: 1px solid #888888" width="$percentage" height="10">&nbsp;$hash{number} ($percentage%)</div><div class="spine-spacercel"></div></div>\n);
}
my $label = "";
$label = $stat eq "monthname(sdate)" ? "month" : "";
@@ -224,11 +224,11 @@ sub handler
}
for my $name (@sorted)
- { $namelist .= qq(<div name="adminpanel" class="fullpanel"><div class="panelcel" style="width: 20%">$name</div>\n);
+ { $namelist .= qq(<div name="adminpanel" class="spine-fullpanel"><div class="spine-panelcel" style="width: 20%">$name</div>\n);
my $percentage = sprintf("%.2f",( ( $counters{$name} / $total ) * 100 ) );
- $namelist .= qq(<div class="panelcel" style="width: auto"><img src="/images/dot.jpg" style="border: 1px solid #888888" width="$percentage" height="10">&nbsp;$counters{$name} ($percentage%)</div><div class="spacercel"></div></div>\n);
+ $namelist .= qq(<div class="spine-panelcel" style="width: auto"><img src="/images/dot.jpg" style="border: 1px solid #888888" width="$percentage" height="10">&nbsp;$counters{$name} ($percentage%)</div><div class="spine-spacercel"></div></div>\n);
}
- if ($error) { $error = qq(<p class="error">$error</p>); }
+ if ($error) { $error = qq(<p class="spine-error">$error</p>); }
$body =~ s/\$error/$error/gmx;
$body =~ s/\$list/$list/gmx;
$body =~ s/\$orderf/$orderf/gmx;
View
108 Spine/lib/SPINE/Handler/Admin/User.pm
@@ -9,16 +9,16 @@ package SPINE::Handler::Admin::User;
## SPINE is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
## You should have received a copy of the GNU General Public License
## along with Foobar; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-## See COPYING and LICENSE for more information on the GPL
-## http://spine.sourceforge.net
-## beatnik@users.sf.org
+## See COPYING and LICENSE for more information on the GPL
+## http://spine.sourceforge.net
+## beatnik@users.sf.org
## $Author: beatnik $ - $Date: 2006/03/08 20:48:44 $ - $Revision: 1.46 $
@@ -43,7 +43,7 @@ $VERSION = $SPINE::Constant::VERSION;
#Apache::Request Handler
#DB Handler
-sub handler
+sub handler
{ $request = shift; #SPINE::Transparent::Request ; Apache::Request
my $dbh = shift; #DB Handler
my @params = ();
@@ -65,15 +65,15 @@ sub handler
$usergroup_dbi = SPINE::DBI::Usergroup->new($dbh);
$adminaccess_dbi = SPINE::DBI::Adminaccess->new($dbh);
$session_dbi = SPINE::DBI::Session->new($dbh);
- $attribute_dbi = SPINE::DBI::Attribute->new($dbh);
- $url = '.administration/user';
+ $attribute_dbi = SPINE::DBI::Attribute->new($dbh);
+ $url = '.administration/user';
my $session = undef;
$session = $session_dbi->get($cookies{'key'}->value) if $cookies{'key'};
$user = "admin";
$user = $session->username if $session;
- my @usergroups = @{ $usergroup_dbi->get({username=>$user}) };
+ my @usergroups = @{ $usergroup_dbi->get({username=>$user}) };
@usergroups = map { $_ = $_->usergroup } @usergroups;
my @adminaccess = ();
for(@usergroups)
@@ -118,42 +118,42 @@ sub handler
shift @params;
if ($params[0] eq 'new' && !$execperms)
- { $error = $valid_perms_string.$create_user_string;
- $url = '.administration/user';
+ { $error = $valid_perms_string.$create_user_string;
+ $url = '.administration/user';
}
if ($params[0] eq 'remove' && !$execperms)
- { $error = $valid_perms_string.$remove_user_string;
- $url = '.administration/user';
+ { $error = $valid_perms_string.$remove_user_string;
+ $url = '.administration/user';
}
if ($params[0] eq 'edit' && !$readperms)
- { $error = $valid_perms_string.$edit_user_string;
- $url = '.administration/user';
+ { $error = $valid_perms_string.$edit_user_string;
+ $url = '.administration/user';
}
if ($params[0] eq 'save' && !$writeperms)
- { $error = $valid_perms_string.$save_user_string;
- $url = '.administration/user';
+ { $error = $valid_perms_string.$save_user_string;
+ $url = '.administration/user';
}
- if (($params[0] eq 'edit' || $params[0] eq 'new' ) && !$error)
+ if (($params[0] eq 'edit' || $params[0] eq 'new' ) && !$error)
{ $url = '.administration/user-edit'; }
my $edit_user = shift @{ $user_dbi->get({login=>$request->param("login"), count=>1}) };
if ($edit_user && $params[0] eq 'new' && !$error)
- { $error = $user_exists_string;
- $url = '.administration/user';
+ { $error = $user_exists_string;
+ $url = '.administration/user';
}
if (!$edit_user && ($params[0] eq 'save' || $params[0] eq 'edit' || $params[0] eq 'copy' || $params[0] eq 'remove')&& !$error)
- { $error = $user_notexists_string;
- $url = '.administration/user';
+ { $error = $user_notexists_string;
+ $url = '.administration/user';
}
- if ($params[0] eq 'new' && !$error && $request->method eq "POST")
- { $user_dbi->add(SPINE::Base::User->new({usergroup=>"users",login=>$request->param('login'), fullname=>$request->param('fullname')}));
- $usergroup_dbi->add(SPINE::Base::Usergroup->new({usergroup=>"users",username=>$request->param('login')}));
+ if ($params[0] eq 'new' && !$error && $request->method eq "POST")
+ { $user_dbi->add(SPINE::Base::User->new({usergroup=>"users",login=>$request->param('login'), fullname=>$request->param('fullname')}));
+ $usergroup_dbi->add(SPINE::Base::Usergroup->new({usergroup=>"users",username=>$request->param('login')}));
}
if ($params[0] eq 'save' && !$error && $request->method eq "POST")
@@ -171,48 +171,66 @@ sub handler
if ($url eq ".administration/user")
{ $content->title("User Administration"); }
- if ((!$params[0] || $params[0] eq 'remove' || $params[0] eq 'save') || $error)
+ if ((!$params[0] || $params[0] eq 'remove' || $params[0] eq 'save') || $error)
{ my @users = @{$user_dbi->get()};
my $list = undef;
for(@users)
{ my %hash = $_->tohash;
- $list .= qq(<div name="adminpanel" class="fullpanel"><form action="<?SPINE_Location?>admin/user/edit/" method="post">\n);
- $list .= qq(<input type="hidden" name="login" value="$hash{login}"><div class="panelcel" style="width: 20%">$hash{fullname}</div>\n);
- $list .= qq(<div class="panelcel" style="width: 20%">$hash{login}</div><div class="panelcel" style="width: 20%"><input type="submit" value="edit" class="button" name="action">\n);
- $list .= qq(</form>&nbsp;<form action="<?SPINE_Location?>admin/user/remove/" method="post"><input type="hidden" name="login" value="$hash{login}">\n);
- $list .= qq(<input type="submit" value="delete" class="button" name="action"></div></form></div><div class="spacercel"></div>\n);
+ $list .=<<EOF;
+<div name="adminpanel" class="spine-fullpanel">
+ <div style="float:left;width:412px;">
+ <form action="<?SPINE_Location?>admin/user/edit/" method="post">
+ <input type="hidden" name="login" value="$hash{login}">
+ <div class="spine-panelcel" style="width:195px">$hash{fullname}</div>
+ <div class="spine-panelcel" style="width:195px">$hash{login}</div>
+ <div class="spine-panelcel" style="width:10px">
+ <input type="image" alt="edit" src="/images/preferences.png" name="action" style="padding:0px"></div>
+ </form>
+ </div>
+ <div style="float:left;">
+ <form action="<?SPINE_Location?>admin/user/remove/" method="post">
+ <input type="hidden" name="login" value="$hash{login}">
+ <input type="image" alt="delete" src="/images/delete.png" name="action" style="padding:0px">
+ </form>
+ </div>
+
+</div>
+<div class="spine-spacercel"></div>
+
+EOF
+
}
- if ($error) { $error = qq(<p class="error">$error</p>); }
+ if ($error) { $error = qq(<p class="spine-error">$error</p>); }
$body =~ s/\$userdata/$list/gmx;
- $body =~ s/\$error/$error/gmx;
- }
- if (($params[0] eq "edit" || $params[0] eq "save" || $params[0] eq "new") && !$error)
+ $body =~ s/\$error/$error/gmx;
+ }
+ if (($params[0] eq "edit" || $params[0] eq "save" || $params[0] eq "new") && !$error)
{ my $user = shift @{ $user_dbi->get({login=>$request->param("login"), count=>1}) };
- my @usergroups = @{ $usergroup_dbi->get({username=>$request->param("login")}) };
+ my @usergroups = @{ $usergroup_dbi->get({username=>$request->param("login")}) };
my %hash = ();
%hash = $user->tohash if ref $user;
- $body =~ s/\$error/$error/gmx;
- $body =~ s/\$login/$hash{login}/gmx;
- $body =~ s/\$name/$hash{fullname}/gmx;
- $body =~ s/\$password//gmx;
- $body =~ s/\$id/$hash{id}/gmx;
- $body =~ s/\$email/$hash{email}/gmx;
+ $body =~ s/\$error/$error/gmx;
+ $body =~ s/\$login/$hash{login}/gmx;
+ $body =~ s/\$name/$hash{fullname}/gmx;
+ $body =~ s/\$password//gmx;
+ $body =~ s/\$id/$hash{id}/gmx;
+ $body =~ s/\$email/$hash{email}/gmx;
@usergroups = map { $_ = $_->usergroup } @usergroups;
my @adminaccess = ();
for(@usergroups)
{ push(@adminaccess, @{ $adminaccess_dbi->get({usergroup=>$_}) }); }
my $usergroups = join(", ",@usergroups);
- $body =~ s/\$usergroups/$usergroups/gmx;
+ $body =~ s/\$usergroups/$usergroups/gmx;
my $adminaccess = undef;
my %permissions = ();
for(@adminaccess) { $permissions{$_->section} = $permissions{$_->section} | $_->permissions; }
#Add clean HTML here
#ORing permissions works
#TODO: Add Group & permissions
- for(keys %permissions)
+ for(keys %permissions)
{ #$adminaccess .= qq(<input type="checkbox"
$adminaccess .= $_."&nbsp;&nbsp;". $permissions{$_}."<br>"; }
- $body =~ s/\$permissions/$adminaccess/gmx;
+ $body =~ s/\$permissions/$adminaccess/gmx;
}
$content->body($body);
return $content;
View
16 Spine/lib/SPINE/Handler/Admin/Usergroup.pm
@@ -155,20 +155,20 @@ sub handler
my $group = undef;
my $user = undef;
for(@users) { $user .= qq(<option>$_); }
- $list .= qq(<div name="adminpanel" class="fullpanel"><form action="<?SPINE_Location?>admin/usergroup/new/" method="post" method="post">\n);
- $list .= qq(<div class="panelcel" style="width: 20%"><select name="username">$user</select></div>\n);
- $list .= qq(<div class="panelcel" style="width: 20%"><input type="text" name="usergroup" class="input" value="" size="30"></div\n);
- $list .= qq(<div class="panelcel" style="width: 20%"><input type="submit" value="Create" class="button" name="action"></div><div class="spacercel"></div></form></div>\n);
+ $list .= qq(<div name="adminpanel" class="spine-fullpanel"><form action="<?SPINE_Location?>admin/usergroup/new/" method="post" method="post">\n);
+ $list .= qq(<div class="spine-panelcel" style="width: 20%"><select name="username">$user</select></div>\n);
+ $list .= qq(<div class="spine-panelcel" style="width: 20%"><input type="text" name="usergroup" class="spine-input" value="" size="30"></div\n);
+ $list .= qq(<div class="spine-panelcel" style="width: 20%"><input type="submit" value="Create" class="spine-button" name="action"></div><div class="spine-spacercel"></div></form></div>\n);
for(@groups)
{ my %hash = $_->tohash;
my $group = undef;
for(@groups) { my $sel = $hash{"usergroup"} eq $_ ? ' selected' : ''; next if !$_; $group .= qq(<option$sel>$_); }
- $list .= qq(<div name="adminpanel" class="fullpanel"><form action="<?SPINE_Location?>admin/usergroup/remove/" method="post">\n);
+ $list .= qq(<div name="adminpanel" class="spine-fullpanel"><form action="<?SPINE_Location?>admin/usergroup/remove/" method="post">\n);
$list .= qq(<input type="hidden" name="usergroup" value="$hash{usergroup}"><input type="hidden" name="username" value="$hash{username}"><input type="hidden" name="id" value="$hash{id}">\n);
- $list .= qq(<div class="panelcel" style="width: 20%">$hash{username}</div><div class="panelcel" style="width: 20%">$hash{usergroup}</div>\n);
- $list .= qq(<div class="panelcel" style="width: 20%"><input type="submit" value="Delete" class="button" name="action"></div><div class="spacercel"></div></form></div>\n);
+ $list .= qq(<div class="spine-panelcel" style="width: 20%">$hash{username}</div><div class="spine-panelcel" style="width: 20%">$hash{usergroup}</div>\n);
+ $list .= qq(<div class="spine-panelcel" style="width: 20%"><input type="submit" value="Delete" class="spine-button" name="action"></div><div class="spine-spacercel"></div></form></div>\n);
}
- if ($error) { $error = qq(<p class="error">$error</p>); }
+ if ($error) { $error = qq(<p class="spine-error">$error</p>); }
$body =~ s/\$list/$list/gmx;
$body =~ s/\$error/$error/gmx;
$content->body($body);
View
2,134 Spine/sql/postgres/pg-dump-20113009_2.sql → Spine/sql/postgres/pg-dump-20111210.sql
1,138 additions, 996 deletions not shown
Please sign in to comment.
Something went wrong with that request. Please try again.