Commit c2b972be authored by Siddhant Sanyam's avatar Siddhant Sanyam

Resolved the Error handler

parents 7d7b70af 15d6eafd
......@@ -2,6 +2,9 @@
/UNGProject/nbproject/
/UNGProject/jquery_sheet_editor/
/UNGProject/js/jquery/
/UNGProject/css/images/
/UNGProject/svg-edit/
/UNGProject/dav
# buildout
/bin/
......
/*
Document : editor_style
Created on : 31 mai 2011, 10:01:45
Author : floz
Description:
Purpose of the stylesheet follows.
*/
/*
TODO customize this sample style
Syntax recommendation http://www.w3.org/TR/REC-CSS2/
*/
/* general */
div.content {
background:none repeat scroll 0 0 #DAE6F6;
border-bottom:4px solid #BBCCFF;
border-top:4px solid #BBCCFF;
}
body {
background: #fff !important;
width:100%;
height:100%;
margin: 0;
padding: 0;
font-family: arial,sans-serif;
display:inline-block;
font-weight:normal;
overflow-x: hidden;
}
/* Hidden input */
fieldset#hidden_fieldset,
div#upload_document,
div#edit_document {
display: none;
}
div.header-user {
text-align: right;
font-size: 13px;
margin-right:1%;
margin-top:-1.7%;
}
/* navigation classes */
div.navigation {
font-family: arial,sans-serif;
padding: 5px;
height: 15px;
border-bottom: 1px solid #C9D7F1;
font-size: 13px;
}
div.navigation fieldset.widget {
border: 0px;
padding-top: 0.6%;
margin: -0.60%;
width: 96%;
}
iframe#svgframe, fieldset.widget {
border: 0px;
}
div.listbox-content a, a:visited, a:focus
{
background-color: inherit;
color: #002e3f;
text-decoration: none;
}
/* navigation-left */
div.navigation-left a
{
margin-left: 7px;
}
/* languages */
span#available_language {
text-decoration: underline;
}
div#select_language li span {
color: #20C;
cursor: pointer;
}
/* navigation-right */
div.navigation-right {
float: right;
margin-top: -16px;
}
div.navigation-right fieldset.widget div
{
float: left;
}
div.navigation-right a
{
margin-left: 2px;
}
/* UNG Docs image */
div.logo-area {
float: left;
padding-right: 10px;
}
a.ung_docs img {
border:0 none;
left:-7px;
position:relative;
top:9px;
}
/* document title & document state*/
div#wrapper_header div.field a[name="document_title"], div#wrapper_header div.field a[name="document_state"]
{
margin-left: 22px;
font-size: 15px;
}
div#wrapper_header div.field a[name="document_title"] {
color:#060605;
padding:3px;
text-decoration:none;
}
div#wrapper_header div.field a[name="document_title"]:hover {
background:none repeat scroll 0 0 #FFFFD6;
border:1px solid #AAAAAA;
}
div#wrapper_header div.field a[name="document_state"] {
color:#525f94;
font-size:13px !important;
}
/* right-bottom corner */
div.header-right fieldset.widget {
height: 29px;
}
/* uptated */
div.header-right div.input a {
color:#A7A2A2;
font-size:13px;
}
/* save button */
button.save {
background-image:url('../images/ung/button_background.png');
border:1px solid #D1D1D1;
height:21px;
color:#333333;
}
/* change-state box */
.action_menu li a:hover {
color:#000000;
text-decoration:none;
}
.action_menu a#change_state {
color: #333333;
background-image: url('../images/ung/button_background.png');
border: 1px solid #D1D1D1;
padding:2px;
}
.action_menu li ul li h6 {
color: #333333;
font-size: 12px;
padding-top:4px;
font-weight:lighter;
}
/* *********************************************** */
/* Main action classes */
div.main-action-area {
padding: 8px;
height: 30px;
}
div.main-action-area {
margin-top: 0.7%;
}
div.search-action-area {
float: left;
}
div.share-action-area {
text-align: right;
}
/* Main classes */
div.main-right {
width:82%;
float:right;
border-left: 4px solid #BBCCFF;
}
div.main-right div.main-content {
width: 100%;
height: 100%;
background-color: #fff;
vertical-align: middle;
}
div.main-right div.main-status {
padding: 5px;
height: 22px;
vertical-align: middle;
font-size: 18px;
font-weight: bold;
}
div.gadget-column {
margin-left:-4px;
}
div.gadget-column div.file-selection {
background-color:#fff;
margin:15px -4px -4px;
}
div.gadget-column div.file-selection div.file-quick-browser,
div.gadget-column div.file-selection div.file-quick-search {
padding-top: 5px;
padding-bottom: 5px;
border-bottom: 1px solid #DDD;
width:14.3em;
}
div.quick-search-item, td.listbox-table-domain-tree-cell a {
padding-left: 15px;
font-size: 13px;
line-height: 19px;
cursor: pointer;
text-decoration: none;
color: #000000;
}
div.quick-search-item:hover,
table.listbox-table-domain-tree tbody tr:hover {
background-color: #DAE6F6;
}
/* ERP5 Forms*/
div.field label,
span.headline,
a.listbox_title,
div.actions, div.actions,
legend.group_title, fieldset.left {
display:none;
}
fieldset.bottom {
position: relative;
border:0px;
padding:0px;
list-style: none;
}
div.listbox-content table.listbox tbody tr td {
vertical-align: middle;
padding:2.2px;
}
div.listbox-content tr {
font-size:13px;
empty-cells:show;
white-space:nowrap;
padding-top: 1px;
border-bottom: 1px solid #D1D1D1;
}
tr.DataA:hover, tr.DataB:hover {
background-color: #DAE6F6;
}
div.listbox-content a img, div.main-content a img {
border:0px;
}
div.listbox-content td.listbox-table-data-cell a img {
margin-right: -8px;
}
div.main-right div.main-status a {
float:right;
font-size:14px;
padding-right:1%;
padding-top:0.3%;
}
.sort-button {
border:0px;
background: url("images/ung/href_background.gif");
}
.listbox {
border-collapse: collapse;
}
.listbox th {
border-right: 1px solid #bbccff;
}
thead {
font-family: serif;
font-style: normal;
font-variant: normal;
font-weight: normal;
font-size: medium;
line-height: 100%;
word-spacing: normal;
letter-spacing: normal;
background: url("images/ung/href_background.gif");
}
.listbox-table-select-cell {
width:0.5%;
}
.listbox-table-header-cell {
text-align:left;
}
div.listbox-content a:hover {
background-color:inherit;
color:#3D6474;
text-decoration:underline;
}
img.sort-button-desc {
background: url("images/ung/icon_desc.gif") no-repeat;
width:10px;
margin:1px -10px;
}
img.sort-button-asc {
background: url("images/ung/icon_asc.gif") no-repeat;
width:10px;
margin:1px -10px;
}
.jSheetControls_formula {
width: 90% !important;
}
iframe#svgframe, fieldset.widget {
border: 0px;
}
iframe#svgframe {
width: 100%;
}
div#wrapper_toolbar {
background: #E3E9FF no-repeat;
height:35px;
}
button.clone {
background-image: url('images/ung/fileclone.png');
border: 0 none;
height:22px;
width:23px;
}
div#wrapper_toolbar fieldset.widget div.field div.input {
margin-top:-2px;
}
div#wrapper_header div.navigation-right {
float: right;
margin-top: -5.2em;
}
div#wrapper_header div.field fieldset {
border:0px;
}
div.header-bottom {
margin-left:-7px;
margin-top:6px;
width:100%;
}
div.header-right {
float: right;
margin-top: -38px;
height: 18px;
width: 41.3%;;
}
div.main-left, div.main-right, div.main {
height: 45em;
margin-top: -0.6em;
}
div.main {
margin-top: 0.5em;
height: auto;
}
button.delete {
margin-top: 6px;
margin-left: 6px;
}
div.favorite-box {
margin-top:-6px;
margin-left:-16px;
}
table.listbox {
margin-left: -12px;
background: #eff3fa;
}
div.main-right fieldset.widget div.field:last-child img {
display:none;
}
div.header-right div.input a {
color:#A7A2A2;
font-size:13px;
}
a.ung_docs img {
border:0 none;
left:-7px;
position:relative;
top:9px;
}
div.main-left {
margin-left:-4px;
width: 18%;
float:left;
background-color: #DAE6F6;
height:4em;
border: 0;
}
div.favorite {
background-color: #BBCCFF;
height:27px;
margin-top:-5px;
padding-top:8px;
}
div.favorite a {
font-size: 14px;
float: right;
margin-right: 5px;
}
div.favorite {
margin-left:-12px;
border-collapse: collapse;
}
div.content {
background:none repeat scroll 0 0 #DAE6F6;
border-bottom:4px solid #BBCCFF;
border-top:4px solid #BBCCFF;
}
div.main-right div.content {
height:27em;
}
div.listbox-body div.main-right tbody {
height:25.35em;
overflow-x:hidden;
overflow-y:auto;
}
div.header-left {
margin-left:1px;
margin-top:-4px;
}
.sort-button span {
color:#112abb;
}
div.navigation-left a {
margin-left:7px;
}
div.navigation-right a {
margin-left:2px;
}
div.main-right fieldset.widget{
padding:0;
margin-left:12px;
margin-top:5px;
}
div.bottom_actions button {
display:none;
}
div.toolbar button, div.gadget-action input#upload {
color: #333333;
border: 1px solid #BBBBBB;
background-image: url('../images/ung/button_background.png');
-moz-border-radius: 4px;
}
.menu_create_object {
color:#8e8e8e;
margin-top:-5px;
}
div#select_language {
color: #20C;
}
.menu_create_object, div#select_language {
font-family: arial,sans-serif;
font-size:14px;
list-style:none outside none;
white-space:nowrap;
}
.menu_create_object img {
border:0px;
}
.menu_create_object li a#current {
background-image: url('../images/ung/button_background.png');
width: 78px;
height: 19px;
color: #333333;
border:1px solid #BBBBBB;
padding-left:2px;
padding-right:14px;
text-align:justify;
-moz-border-radius: 4px;
}
.menu_create_object ul, div#select_language ul {
list-style:none;
margin:0;
padding:0;
}
span#available_language {
text-decoration: underline;
}
div#select_language li span {
color: #20C;
cursor: pointer;
}
.menu_create_object li {
float:left;
margin-left: 0.5em;
position:relative;
top: 0.5em;
text-decoration:none;
}
.menu_create_object li a, div#select_language li a {
display:block;
text-decoration:none;
}
.menu_create_object li a:hover, div#select_language li a:hover {
color:#000000;
text-decoration:none;
}
.menu_create_object li:hover ul, div#select_language li:hover ul {
display:block;
}
div#select_language li li {
background:none repeat scroll 0 0 #FFFFFF;
border-left: 1px solid #C9D7F1;
border-right: 1px solid #C9D7F1;
}
.menu_create_object li li {
display:block;
margin-left:0;
}
.menu_create_object p {
clear:left;
}
div#select_language li ul {
width:70px;
}
.menu_create_object li ul {
border:1px solid #D1D1D1;
background-color: #FFF;
}
.menu_create_object li ul, div#select_language li ul {
display:none;
height:auto;
filter:alpha(opacity=95);
position:absolute;
z-index:200;
}
.menu_create_object li ul a, div#select_language li ul a {
display:block;
font-size:14px;
font-style:normal;
margin-left:4px;
margin-top:-5px;
padding:0 21px 0 1px;
text-align:left;
color:#002E3F;
text-decoration:none;
line-height:28px;
}
div.gadget-column input#upload {
left:1em;
position:relative;
top:0.5em;
}
.menu_create_object li li:hover, div#select_language li li:hover {
background-color: #DAE6F6;
}
.menu_create_object li a#current img {
margin-left:3px;
position:relative;
top:2px;
}
.action_menu {
float:right;
margin-right:5em;
width:25%;
}
.action_menu li {
list-style:none outside none;
}
.action_menu li ul {
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #D1D1D1;
display: none;
height: 76px;
position: relative;
margin-top:3px;
width: 143px;
z-index: 200;
}
.action_menu li a:hover {
color:#000000;
text-decoration:none;
}
.action_menu li ul li {
margin: -26px 0px -24px -40px;
height: 23px;
text-align:center;
}
.action_menu li:hover ul {
display:block;
}
.action_menu a#change_state {
color: #333333;
background-image: url('../images/ung/button_background.png');
border: 1px solid #D1D1D1;
padding:2px;
}
.action_menu li ul li h6 {
color: #333333;
font-size: 12px;
padding-top:4px;
font-weight:lighter;
}
.action_menu li ul li:hover {
background: #f3f3f3;
}
button.save {
background-image:url('../images/ung/button_background.png');
border:1px solid #D1D1D1;
height:21px;
color:#333333;
}
button.edit {
border:1px solid #D1D1D1;
float:right;
margin-top:-1.6em;
background-image:url('../images/ung/button_background.png');
color:#333333;
}
div#edit_document fieldset label {
font-size: 12px;
}
div.ui-dialog-titlebar {
height:15px;
}
div#edit_document fieldset {
border:0 none;
height:72px;
margin-left:-1em;
margin-top:-0.5em;
width:379px;
}
div#edit_document {
height:80px;
width:368px;
overflow:hidden;
}
div#edit_document fieldset input {
margin-top:6px;
font-size:13px;
width: 95%;
}
div.ui-dialog {
background: #C1D9FF;
}
div#edit_document fieldset label {
font-size: 12px;
}
span#ui-dialog-title-edit_document,
span#ui-dialog-title-upload_document,
span#ui-dialog-title-gadget-listbox{
font-size:17px;
margin-left:-8px;
margin-top:-3px;
font:bold 12pt Arial,Sans-serif;
color: #222222 !important;
}
div.ui-dialog-titlebar {
height:15px;
border: 0px;
background: #E0EDFE;
-moz-border-radius:1px 1px 1px 1px;
}
button#save_document, button#cancel_document {
font-size:11px;
margin-top:0.7em;
}
.ui-dialog .ui-dialog-buttonpane {
background:none repeat scroll 0 0 #C1D9FF;
border-top:0 none;
width: 5.6em;
padding:0 !important;
}
.ui-button-text-only .ui-button-text {
padding:0.2em 0.3em !important;
}
.ui-button .ui-button-text {
line-height:1em !important;
}
.ui-dialog .ui-dialog-buttonpane button {
margin:0 0.4em 0.5em 0 !important;
}
span.ui-button-text {
font-size: 12px;
}
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
float:none !important;
width:104px;
height:21px;
margin-top:-10px;
}
div.listbox-navigation {
float:right;
font-size:13px;
margin-top:6px;
min-width:10%;
margin-right:5px;
}
div.listbox-navigation input {
height: 18px;
width: 20px;
}
div.listbox-header-box {
height:0px;
}
div.listbox-number-of-records{
float: right;
font-size: 12px;
margin-right: 12em;
margin-top: -18px;
min-width: 30%;
}
div.listbox-navigation button.listbox_last_page,
div.listbox-navigation button.listbox_next_page,
div.listbox-navigation button.listbox_previous_page,
div.listbox-navigation button.listbox_first_page {
height:20px;
border: 0px;
}
div.listbox-navigation button.listbox_previous_page,
div.listbox-navigation button.listbox_next_page {
margin: 0px;
width:12px;
}
div.listbox-navigation button.listbox_last_page,
div.listbox-navigation button.listbox_first_page {
margin: 0px;
width:18px;
}
div.listbox-navigation button.listbox_next_page {
background-image: url('images/ung/next_page.png');
}
div.listbox-navigation button.listbox_last_page {
background-image: url('images/ung/last_page.png');
}
div.listbox-navigation button.listbox_first_page {
background-image: url('images/ung/first_page.png');
}
div.listbox-navigation button.listbox_previous_page {
background-image: url('images/ung/previous_page.png');
}
div.listbox-navigation button.listbox_previous_page,
div.listbox-navigation button.listbox_first_page,
div.listbox-navigation button.listbox_last_page,
div.listbox-navigation button.listbox_next_page {
background-repeat:no-repeat;
}
p#more_properties, p#hide_properties {
font-size: 12px;
}
p#more_properties:hover, p#hide_properties:hover {
color:#525f94;
}
a#left_message, a#right_message {
display: none;
color: #FD0A0A;
}
div.listbox-domain-tree-container select {
display:none;
}
div.listbox-tree {
font-size: 13px;
width: 98.7%;
overflow: hidden;
height: 233px;
}
div.listbox-tree-mode-selection {
display:none;
}
table.listbox-table-domain-tree {
width: 100%;
}
a.domain_selected {
float:left !important;
font-size: 15px !important;
}
div#upload_document {
height: 58px !important;
width: 390px !important;
font-size: 12px;
}
fieldset#file_box {
border: 0px !important;
margin-left: -17px;
margin-top: -4px;
}
input#submit_document {
background: url("images/ui-bg_glass_75_dae6f6_1x400.png") repeat-x scroll 50% 50% #DAE6F6;
border: 1px solid #3D6474;
color: #555555;
font-weight: normal;
-moz-border-radius: 4px 4px 4px 4px;
margin-top: 3px;
}
a#loading_message {
display: none;
}
iframe#field_my_text_content___Frame {
height: 489px !important;
}
div#login-box {
font-family: Arial,Helvetica,sans-serif;
font-size: 12px;
margin: 0;
padding: 23px 23px 0 0;
float:right;
width: 23%;
}
div#login-box input {
vertical-align: middle;
}
div#login-box input.submit {
margin-top: 6px;
}
div#preference_dialog {
display:none;
width: 308px !important;
font-size: 14px;
}
fieldset.center.editable, fieldset.right.editable {
border: 0;
padding: 0.15em 0.35em 0.400em;
font-size: 14px;
margin-left: -11px;
}
fieldset.center.editable div.field label,
fieldset.right.editable div.field label {
display: block;
}
span#ui-dialog-title-preference_dialog {
margin: 0;
margin-top: -2px;
margin-left: -10px;
font-size: 15px;
color: #222222 !important;
}
div#preference_dialog div.field {
padding-bottom: 1px;
padding-top: 1px;
}
div.header-right fieldset.widget {
height: 29px;
}
div.header-right fieldset.widget span#sharing_url {
padding-top: 2px;
font-size: 11px;
}
div.gadget-listbox {
display: none;
}
table#gadget-table tbody tr img {
float: right;
}
table#gadget-table tbody tr {
font-size: 15px;
}
table#gadget-table {
width: 100%;
}
div.gadget-action div.front_pad {
font-size: 10px;
}
h3.handle {
color: #222222 !important;
background: white !important;
font-size: 13px !important;
border-bottom: 0px !important;
}
div.block div.content {
border-top: 0px !important;
border-bottom: 1px solid #DDDDDD !important;
}
div.portal-column {
width: 100% !important;
}
div#page_wrapper div.minimize_wrapper div.edit-form fieldset.left,
div#page_wrapper div.minimize_wrapper div.edit-form fieldset.left label {
display: inline !important;
}
div.edit-form button {
margin-top: -0.3em !important;
}
div.edit-form {
padding-left: 0 !important;
}
h3.handle span.handle {
background: white !important;
}
a.block-minimize {
background-image: url("images/ung/icon_minimize.png") !important;
}
a.block-remove {
background-image: url("images/ung/icon_remove.png") !important;
}
a.block-edit-form {
background-image: url("images/ung/icon_edit.png") !important;
}
table#navigation_table td#tab-switcher-container,
table#navigation_table td#tab-list-container {
display: none !important;
}
div#add_new_gadget_link {
border-bottom: 0px;
padding-top: 5px;
width: 50% !important;
}
div.front_pad div#page_wrapper {
margin: -0.5em 0 0 !important;
}
#add-gadgets{
font-size: 11px;
}
form#ung_preference,
form#system_preference,
form#erp5_preference {
margin:0px;
padding: 0px;
}
div.edit-form {
background-color: #FFF !important;
border: 0 none !important;
}
table.gadget tbody tr:first-child {
display: none !important;
}
div.edit-form {
height: 176px !important;
}
div#edit_document.ui-dialog-content {
background-color: #FFFFFF;
}
.ui-widget textarea {
font-size: 13px !important;
}
div#tabs, div#pad-navigation-wrapper div#tabs_switcher.tab {
display: none !important;
}
div#pad-navigation-wrapper {
border: 0px !important;
}
img[alt="calendar_logo_box"] {
margin-top: 10px;
}
div#preference_dialog select {
border: 0px;
}
a.your_listbox_title {
display: none;
}
table#field_table,
table#new-account-table,
table#create-new-user {
border: 1px solid #C3D9FF;
width: 78%;
}
table#field_table tbody,
table#new-account-table tbody,
table#create-new-user tbody {
background: #E8EEFA;
}
table#field_table tbody label {
font-size: 10pt;
float: right;
}
table#new-account-table table td,
table#create-new-user td {
font-size: 10pt;
}
td#new-account-form {
text-decoration: underline;
color: #00C;
font-weight: bold;
cursor: pointer;
}
table#create-new-user {
display:none;
margin-top: -22px;
}
td#form-message {
color: #EC1D1D;
display: none;
}
div#advertisement h2 {
font-size: 15pt;
}
div#advertisement b {
font-size: 12px !important;
}
div.footer {
text-align: center;
margin-top: 40px;
font-size: 10pt;
}
div.header-left h2 {
font-size: 14pt;
}
form#create-user table tbody tr:last-child td {
color: #20C;
text-decoration: underline;
font-size: 8pt;
cursor: pointer;
}
select[name="field_your_language"] {
background-color: transparent;
border: 0 none;
}
div.navigation-right fieldset.widget div {
float: left;
}
span.date-format {
font-style: italic;
}
span#no-input-file {
display: none;
color: #f61717;
}
.tree-open, .tree-closed {
border: none;
background: #FFF;
cursor: pointer;
}
\ No newline at end of file
/*
Document : editor_style
Created on : 31 mai 2011, 10:01:45
Author : floz
Description:
Purpose of the stylesheet follows.
*/
/*
TODO customize this sample style
Syntax recommendation http://www.w3.org/TR/REC-CSS2/
*/
/* general */
div.content {
background:none repeat scroll 0 0 #DAE6F6;
border-bottom:4px solid #BBCCFF;
border-top:4px solid #BBCCFF;
}
body {
background: #fff !important;
width:100%;
height:100%;
margin: 0;
padding: 0;
font-family: arial,sans-serif;
display:inline-block;
font-weight:normal;
overflow-x: hidden;
}
/* Hidden input */
fieldset#hidden_fieldset,
div#upload_document,
div#edit_document {
display: none;
}
div.header-user {
text-align: right;
font-size: 13px;
margin-right:1%;
margin-top:-1.7%;
}
/* navigation classes */
div.navigation {
font-family: arial,sans-serif;
padding: 5px;
height: 15px;
border-bottom: 1px solid #C9D7F1;
font-size: 13px;
}
div.navigation fieldset.widget {
border: 0px;
padding-top: 0.6%;
margin: -0.60%;
width: 96%;
}
iframe#svgframe, fieldset.widget {
border: 0px;
}
div.listbox-content a, a:visited, a:focus
{
background-color: inherit;
color: #002e3f;
text-decoration: none;
}
/* navigation-left */
div.navigation-left a
{
margin-left: 7px;
}
/* languages */
span#available_language {
text-decoration: underline;
}
div#select_language li span {
color: #20C;
cursor: pointer;
}
/* navigation-right */
div.navigation-right {
float: right;
margin-top: -16px;
}
div.navigation-right fieldset.widget div
{
float: left;
}
div.navigation-right a
{
margin-left: 2px;
}
/* UNG Docs image */
div.logo-area {
float: left;
padding-right: 10px;
}
a.ung_docs img {
border:0 none;
left:-7px;
position:relative;
top:9px;
}
/* document title & document state*/
div#wrapper_header div.field a[name="document_title"], div#wrapper_header div.field a[name="document_state"]
{
margin-left: 22px;
font-size: 15px;
}
div#wrapper_header div.field a[name="document_title"] {
color:#060605;
padding:3px;
text-decoration:none;
}
div#wrapper_header div.field a[name="document_title"]:hover {
background:none repeat scroll 0 0 #FFFFD6;
border:1px solid #AAAAAA;
}
div#wrapper_header div.field a[name="document_state"] {
color:#525f94;
font-size:13px !important;
}
/* right-bottom corner */
div.header-right fieldset.widget {
height: 29px;
}
/* uptated */
div.header-right div.input a {
color:#A7A2A2;
font-size:13px;
}
/* save button */
button.save {
background-image:url('../images/ung/button_background.png');
border:1px solid #D1D1D1;
height:21px;
color:#333333;
}
/* change-state box */
.action_menu li a:hover {
color:#000000;
text-decoration:none;
}
.action_menu a#change_state {
color: #333333;
background-image: url('../images/ung/button_background.png');
border: 1px solid #D1D1D1;
padding:2px;
}
.action_menu li ul li h6 {
color: #333333;
font-size: 12px;
padding-top:4px;
font-weight:lighter;
}
/* *********************************************** */
/* Main action classes */
div.main-action-area {
padding: 8px;
height: 30px;
}
div.main-action-area {
margin-top: 0.7%;
}
div.search-action-area {
float: left;
}
div.share-action-area {
text-align: right;
}
/* Main classes */
div.main-right {
width:82%;
float:right;
border-left: 4px solid #BBCCFF;
}
div.main-right div.main-content {
width: 100%;
height: 100%;
background-color: #fff;
vertical-align: middle;
}
div.main-right div.main-status {
padding: 5px;
height: 22px;
vertical-align: middle;
font-size: 18px;
font-weight: bold;
}
div.gadget-column {
margin-left:-4px;
}
div.gadget-column div.file-selection {
background-color:#fff;
margin:15px -4px -4px;
}
div.gadget-column div.file-selection div.file-quick-browser,
div.gadget-column div.file-selection div.file-quick-search {
padding-top: 5px;
padding-bottom: 5px;
border-bottom: 1px solid #DDD;
width:14.3em;
}
div.quick-search-item, td.listbox-table-domain-tree-cell a {
padding-left: 15px;
font-size: 13px;
line-height: 19px;
cursor: pointer;
text-decoration: none;
color: #000000;
}
div.quick-search-item:hover,
table.listbox-table-domain-tree tbody tr:hover {
background-color: #DAE6F6;
}
/* ERP5 Forms*/
div.field label,
span.headline,
a.listbox_title,
div.actions, div.actions,
legend.group_title, fieldset.left {
display:none;
}
fieldset.bottom {
position: relative;
border:0px;
padding:0px;
list-style: none;
}
div.listbox-content table.listbox tbody tr td {
vertical-align: middle;
padding:2.2px;
}
div.listbox-content tr {
font-size:13px;
empty-cells:show;
white-space:nowrap;
padding-top: 1px;
border-bottom: 1px solid #D1D1D1;
}
tr.DataA:hover, tr.DataB:hover {
background-color: #DAE6F6;
}
div.listbox-content a img, div.main-content a img {
border:0px;
}
div.listbox-content td.listbox-table-data-cell a img {
margin-right: -8px;
}
div.main-right div.main-status a {
float:right;
font-size:14px;
padding-right:1%;
padding-top:0.3%;
}
.sort-button {
border:0px;
background: url("images/ung/href_background.gif");
}
.listbox {
border-collapse: collapse;
}
.listbox th {
border-right: 1px solid #bbccff;
}
thead {
font-family: serif;
font-style: normal;
font-variant: normal;
font-weight: normal;
font-size: medium;
line-height: 100%;
word-spacing: normal;
letter-spacing: normal;
background: url("images/ung/href_background.gif");
}
.listbox-table-select-cell {
width:0.5%;
}
.listbox-table-header-cell {
text-align:left;
}
div.listbox-content a:hover {
background-color:inherit;
color:#3D6474;
text-decoration:underline;
}
img.sort-button-desc {
background: url("images/ung/icon_desc.gif") no-repeat;
width:10px;
margin:1px -10px;
}
img.sort-button-asc {
background: url("images/ung/icon_asc.gif") no-repeat;
width:10px;
margin:1px -10px;
}
.jSheetControls_formula {
width: 90% !important;
}
iframe#svgframe, fieldset.widget {
border: 0px;
}
iframe#svgframe {
width: 100%;
}
div#wrapper_toolbar {
background: #E3E9FF no-repeat;
height:35px;
}
button.clone {
background-image: url('images/ung/fileclone.png');
border: 0 none;
height:22px;
width:23px;
}
div#wrapper_toolbar fieldset.widget div.field div.input {
margin-top:-2px;
}
div#wrapper_header div.navigation-right {
float: right;
margin-top: -5.2em;
}
div#wrapper_header div.field fieldset {
border:0px;
}
div.header-bottom {
margin-left:-7px;
margin-top:6px;
width:100%;
}
div.header-right {
float: right;
margin-top: -38px;
height: 18px;
width: 41.3%;;
}
div.main-left, div.main-right, div.main {
height: 45em;
margin-top: -0.6em;
}
div.main {
margin-top: 0.5em;
height: auto;
}
button.delete {
margin-top: 6px;
margin-left: 6px;
}
div.favorite-box {
margin-top:-6px;
margin-left:-16px;
}
table.listbox {
margin-left: -12px;
background: #eff3fa;
}
div.main-right fieldset.widget div.field:last-child img {
display:none;
}
div.header-right div.input a {
color:#A7A2A2;
font-size:13px;
}
a.ung_docs img {
border:0 none;
left:-7px;
position:relative;
top:9px;
}
div.main-left {
margin-left:-4px;
width: 18%;
float:left;
background-color: #DAE6F6;
height:4em;
border: 0;
}
div.favorite {
background-color: #BBCCFF;
height:27px;
margin-top:-5px;
padding-top:8px;
}
div.favorite a {
font-size: 14px;
float: right;
margin-right: 5px;
}
div.favorite {
margin-left:-12px;
border-collapse: collapse;
}
div.content {
background:none repeat scroll 0 0 #DAE6F6;
border-bottom:4px solid #BBCCFF;
border-top:4px solid #BBCCFF;
}
div.main-right div.content {
height:27em;
}
div.listbox-body div.main-right tbody {
height:25.35em;
overflow-x:hidden;
overflow-y:auto;
}
div.header-left {
margin-left:1px;
margin-top:-4px;
}
.sort-button span {
color:#112abb;
}
div.navigation-left a {
margin-left:7px;
}
div.navigation-right a {
margin-left:2px;
}
div.main-right fieldset.widget{
padding:0;
margin-left:12px;
margin-top:5px;
}
div.bottom_actions button {
display:none;
}
div.toolbar button, div.gadget-action input#upload {
color: #333333;
border: 1px solid #BBBBBB;
background-image: url('../images/ung/button_background.png');
-moz-border-radius: 4px;
}
.menu_create_object {
color:#8e8e8e;
margin-top:-5px;
}
div#select_language {
color: #20C;
}
.menu_create_object, div#select_language {
font-family: arial,sans-serif;
font-size:14px;
list-style:none outside none;
white-space:nowrap;
}
.menu_create_object img {
border:0px;
}
.menu_create_object li a#current {
background-image: url('../images/ung/button_background.png');
width: 78px;
height: 19px;
color: #333333;
border:1px solid #BBBBBB;
padding-left:2px;
padding-right:14px;
text-align:justify;
-moz-border-radius: 4px;
}
.menu_create_object ul, div#select_language ul {
list-style:none;
margin:0;
padding:0;
}
span#available_language {
text-decoration: underline;
}
div#select_language li span {
color: #20C;
cursor: pointer;
}
.menu_create_object li {
float:left;
margin-left: 0.5em;
position:relative;
top: 0.5em;
text-decoration:none;
}
.menu_create_object li a, div#select_language li a {
display:block;
text-decoration:none;
}
.menu_create_object li a:hover, div#select_language li a:hover {
color:#000000;
text-decoration:none;
}
.menu_create_object li:hover ul, div#select_language li:hover ul {
display:block;
}
div#select_language li li {
background:none repeat scroll 0 0 #FFFFFF;
border-left: 1px solid #C9D7F1;
border-right: 1px solid #C9D7F1;
}
.menu_create_object li li {
display:block;
margin-left:0;
}
.menu_create_object p {
clear:left;
}
div#select_language li ul {
width:70px;
}
.menu_create_object li ul {
border:1px solid #D1D1D1;
background-color: #FFF;
}
.menu_create_object li ul, div#select_language li ul {
display:none;
height:auto;
filter:alpha(opacity=95);
position:absolute;
z-index:200;
}
.menu_create_object li ul a, div#select_language li ul a {
display:block;
font-size:14px;
font-style:normal;
margin-left:4px;
margin-top:-5px;
padding:0 21px 0 1px;
text-align:left;
color:#002E3F;
text-decoration:none;
line-height:28px;
}
div.gadget-column input#upload {
left:1em;
position:relative;
top:0.5em;
}
.menu_create_object li li:hover, div#select_language li li:hover {
background-color: #DAE6F6;
}
.menu_create_object li a#current img {
margin-left:3px;
position:relative;
top:2px;
}
.action_menu {
float:right;
margin-right:5em;
width:25%;
}
.action_menu li {
list-style:none outside none;
}
.action_menu li ul {
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #D1D1D1;
display: none;
height: 76px;
position: relative;
margin-top:3px;
width: 143px;
z-index: 200;
}
.action_menu li a:hover {
color:#000000;
text-decoration:none;
}
.action_menu li ul li {
margin: -26px 0px -24px -40px;
height: 23px;
text-align:center;
}
.action_menu li:hover ul {
display:block;
}
.action_menu a#change_state {
color: #333333;
background-image: url('../images/ung/button_background.png');
border: 1px solid #D1D1D1;
padding:2px;
}
.action_menu li ul li h6 {
color: #333333;
font-size: 12px;
padding-top:4px;
font-weight:lighter;
}
.action_menu li ul li:hover {
background: #f3f3f3;
}
button.save {
background-image:url('../images/ung/button_background.png');
border:1px solid #D1D1D1;
height:21px;
color:#333333;
}
button.edit {
border:1px solid #D1D1D1;
float:right;
margin-top:-1.6em;
background-image:url('../images/ung/button_background.png');
color:#333333;
}
div#edit_document fieldset label {
font-size: 12px;
}
div.ui-dialog-titlebar {
height:15px;
}
div#edit_document fieldset {
border:0 none;
height:72px;
margin-left:-1em;
margin-top:-0.5em;
width:379px;
}
div#edit_document {
height:80px;
width:368px;
overflow:hidden;
}
div#edit_document fieldset input {
margin-top:6px;
font-size:13px;
width: 95%;
}
div.ui-dialog {
background: #C1D9FF;
}
div#edit_document fieldset label {
font-size: 12px;
}
span#ui-dialog-title-edit_document,
span#ui-dialog-title-upload_document,
span#ui-dialog-title-gadget-listbox{
font-size:17px;
margin-left:-8px;
margin-top:-3px;
font:bold 12pt Arial,Sans-serif;
color: #222222 !important;
}
div.ui-dialog-titlebar {
height:15px;
border: 0px;
background: #E0EDFE;
-moz-border-radius:1px 1px 1px 1px;
}
button#save_document, button#cancel_document {
font-size:11px;
margin-top:0.7em;
}
.ui-dialog .ui-dialog-buttonpane {
background:none repeat scroll 0 0 #C1D9FF;
border-top:0 none;
width: 5.6em;
padding:0 !important;
}
.ui-button-text-only .ui-button-text {
padding:0.2em 0.3em !important;
}
.ui-button .ui-button-text {
line-height:1em !important;
}
.ui-dialog .ui-dialog-buttonpane button {
margin:0 0.4em 0.5em 0 !important;
}
span.ui-button-text {
font-size: 12px;
}
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
float:none !important;
width:104px;
height:21px;
margin-top:-10px;
}
div.listbox-navigation {
float:right;
font-size:13px;
margin-top:6px;
min-width:10%;
margin-right:5px;
}
div.listbox-navigation input {
height: 18px;
width: 20px;
}
div.listbox-header-box {
height:0px;
}
div.listbox-number-of-records{
float: right;
font-size: 12px;
margin-right: 12em;
margin-top: -18px;
min-width: 30%;
}
div.listbox-navigation button.listbox_last_page,
div.listbox-navigation button.listbox_next_page,
div.listbox-navigation button.listbox_previous_page,
div.listbox-navigation button.listbox_first_page {
height:20px;
border: 0px;
}
div.listbox-navigation button.listbox_previous_page,
div.listbox-navigation button.listbox_next_page {
margin: 0px;
width:12px;
}
div.listbox-navigation button.listbox_last_page,
div.listbox-navigation button.listbox_first_page {
margin: 0px;
width:18px;
}
div.listbox-navigation button.listbox_next_page {
background-image: url('images/ung/next_page.png');
}
div.listbox-navigation button.listbox_last_page {
background-image: url('images/ung/last_page.png');
}
div.listbox-navigation button.listbox_first_page {
background-image: url('images/ung/first_page.png');
}
div.listbox-navigation button.listbox_previous_page {
background-image: url('images/ung/previous_page.png');
}
div.listbox-navigation button.listbox_previous_page,
div.listbox-navigation button.listbox_first_page,
div.listbox-navigation button.listbox_last_page,
div.listbox-navigation button.listbox_next_page {
background-repeat:no-repeat;
}
p#more_properties, p#hide_properties {
font-size: 12px;
}
p#more_properties:hover, p#hide_properties:hover {
color:#525f94;
}
a#left_message, a#right_message {
display: none;
color: #FD0A0A;
}
div.listbox-domain-tree-container select {
display:none;
}
div.listbox-tree {
font-size: 13px;
width: 98.7%;
overflow: hidden;
height: 233px;
}
div.listbox-tree-mode-selection {
display:none;
}
table.listbox-table-domain-tree {
width: 100%;
}
a.domain_selected {
float:left !important;
font-size: 15px !important;
}
div#upload_document {
height: 58px !important;
width: 390px !important;
font-size: 12px;
}
fieldset#file_box {
border: 0px !important;
margin-left: -17px;
margin-top: -4px;
}
input#submit_document {
background: url("images/ui-bg_glass_75_dae6f6_1x400.png") repeat-x scroll 50% 50% #DAE6F6;
border: 1px solid #3D6474;
color: #555555;
font-weight: normal;
-moz-border-radius: 4px 4px 4px 4px;
margin-top: 3px;
}
a#loading_message {
display: none;
}
iframe#field_my_text_content___Frame {
height: 489px !important;
}
div#login-box {
font-family: Arial,Helvetica,sans-serif;
font-size: 12px;
margin: 0;
padding: 23px 23px 0 0;
float:right;
width: 23%;
}
div#login-box input {
vertical-align: middle;
}
div#login-box input.submit {
margin-top: 6px;
}
div#preference_dialog {
display:none;
width: 308px !important;
font-size: 14px;
}
fieldset.center.editable, fieldset.right.editable {
border: 0;
padding: 0.15em 0.35em 0.400em;
font-size: 14px;
margin-left: -11px;
}
fieldset.center.editable div.field label,
fieldset.right.editable div.field label {
display: block;
}
span#ui-dialog-title-preference_dialog {
margin: 0;
margin-top: -2px;
margin-left: -10px;
font-size: 15px;
color: #222222 !important;
}
div#preference_dialog div.field {
padding-bottom: 1px;
padding-top: 1px;
}
div.header-right fieldset.widget {
height: 29px;
}
div.header-right fieldset.widget span#sharing_url {
padding-top: 2px;
font-size: 11px;
}
div.gadget-listbox {
display: none;
}
table#gadget-table tbody tr img {
float: right;
}
table#gadget-table tbody tr {
font-size: 15px;
}
table#gadget-table {
width: 100%;
}
div.gadget-action div.front_pad {
font-size: 10px;
}
h3.handle {
color: #222222 !important;
background: white !important;
font-size: 13px !important;
border-bottom: 0px !important;
}
div.block div.content {
border-top: 0px !important;
border-bottom: 1px solid #DDDDDD !important;
}
div.portal-column {
width: 100% !important;
}
div#page_wrapper div.minimize_wrapper div.edit-form fieldset.left,
div#page_wrapper div.minimize_wrapper div.edit-form fieldset.left label {
display: inline !important;
}
div.edit-form button {
margin-top: -0.3em !important;
}
div.edit-form {
padding-left: 0 !important;
}
h3.handle span.handle {
background: white !important;
}
a.block-minimize {
background-image: url("images/ung/icon_minimize.png") !important;
}
a.block-remove {
background-image: url("images/ung/icon_remove.png") !important;
}
a.block-edit-form {
background-image: url("images/ung/icon_edit.png") !important;
}
table#navigation_table td#tab-switcher-container,
table#navigation_table td#tab-list-container {
display: none !important;
}
div#add_new_gadget_link {
border-bottom: 0px;
padding-top: 5px;
width: 50% !important;
}
div.front_pad div#page_wrapper {
margin: -0.5em 0 0 !important;
}
#add-gadgets{
font-size: 11px;
}
form#ung_preference,
form#system_preference,
form#erp5_preference {
margin:0px;
padding: 0px;
}
div.edit-form {
background-color: #FFF !important;
border: 0 none !important;
}
table.gadget tbody tr:first-child {
display: none !important;
}
div.edit-form {
height: 176px !important;
}
div#edit_document.ui-dialog-content {
background-color: #FFFFFF;
}
.ui-widget textarea {
font-size: 13px !important;
}
div#tabs, div#pad-navigation-wrapper div#tabs_switcher.tab {
display: none !important;
}
div#pad-navigation-wrapper {
border: 0px !important;
}
img[alt="calendar_logo_box"] {
margin-top: 10px;
}
div#preference_dialog select {
border: 0px;
}
a.your_listbox_title {
display: none;
}
table#field_table,
table#new-account-table,
table#create-new-user {
border: 1px solid #C3D9FF;
width: 78%;
}
table#field_table tbody,
table#new-account-table tbody,
table#create-new-user tbody {
background: #E8EEFA;
}
table#field_table tbody label {
font-size: 10pt;
float: right;
}
table#new-account-table table td,
table#create-new-user td {
font-size: 10pt;
}
td#new-account-form {
text-decoration: underline;
color: #00C;
font-weight: bold;
cursor: pointer;
}
table#create-new-user {
display:none;
margin-top: -22px;
}
td#form-message {
color: #EC1D1D;
display: none;
}
div#advertisement h2 {
font-size: 15pt;
}
div#advertisement b {
font-size: 12px !important;
}
div.footer {
text-align: center;
margin-top: 40px;
font-size: 10pt;
}
div.header-left h2 {
font-size: 14pt;
}
form#create-user table tbody tr:last-child td {
color: #20C;
text-decoration: underline;
font-size: 8pt;
cursor: pointer;
}
select[name="field_your_language"] {
background-color: transparent;
border: 0 none;
}
div.navigation-right fieldset.widget div {
float: left;
}
span.date-format {
font-style: italic;
}
span#no-input-file {
display: none;
color: #f61717;
}
.tree-open, .tree-closed {
border: none;
background: #FFF;
cursor: pointer;
}
\ No newline at end of file
......@@ -121,8 +121,7 @@ div#wrapper_header {
/* left */
div.header-left {
margin-top: -4px;
min-width: 32em;
width: 40%;
width: 32em;
position: absolute;
}
div.header-left h2 {
......@@ -156,6 +155,11 @@ div#wrapper_header div.field a[name="document_title"]:hover {
background: none repeat scroll 0 0 #FFFFD6;
border: 1px solid #AAAAAA;
}
/* research bar */
div.input form {
margin-top: 0.5em;
float:right;
}
/* right */
div.header-right{
......
......@@ -25,20 +25,26 @@ SVGEditor = function() {
/**
* SVG documents
* editable documents must implements the following methods
* getType : returns the type of a document
*
* editable documents must implements the following arguments and methods
* type : a unique type ID
* saveEdition : set the argument as the new content of the document. Change last modification time and display the changes
* setAsCurrentDocument : set the document as currentDocument in the local storage and display its properties in the current page
*
* @param arg : a json JSONTextDocument object to load
*/
var JSONIllustrationDocument = function() {
JSONDocument.call(this);//inherits properties from JSONDocument
this.type = "illustration";
var JSONIllustrationDocument = function(arg) {
JSONDocument.call(this,arg);//inherits properties from JSONDocument
if(arg) {this.load(arg);}
else {
this.type = "illustration";
}
}
JSONIllustrationDocument.prototype = new JSONDocument();//inherits methods from JSONDocument
JSONIllustrationDocument.prototype.saveEdition = function(content) {
this.setLastUser(getCurrentUser());
this.setLastUser(getCurrentUser().getName());
this.setContent(content);
this.setLastModification(currentTime());
this.setAsCurrentDocument();
......@@ -53,8 +59,6 @@ JSONIllustrationDocument.prototype.setAsCurrentDocument = function() {
}
getCurrentDocument = function() {
var doc = new JSONIllustrationDocument();
doc.load(JSON.parse(localStorage.getItem("currentDocument")));
return doc;
return new JSONIllustrationDocument(JSON.parse(localStorage.getItem("currentDocument")));
}
......@@ -31,21 +31,29 @@ var Xinha = function() {
/**
* Text documents
* editable documents must implements the following methods
* getType : returns the type of a document
*
* editable documents must implements the following arguments and methods
* type : a unique type ID
* saveEdition : set the argument as the new content of the document. Change last modification time and display the changes
* setAsCurrentDocument : set the document as currentDocument in the local storage and display its properties in the current page
*/
var JSONTextDocument = function() {
JSONDocument.call(this);//inherits properties from JSONDocument
this.type = "text";
/**
* class JSONTextDocument
* @param arg : a json JSONTextDocument object to load
*/
var JSONTextDocument = function(arg) {
JSONDocument.call(this,arg);//inherits properties from JSONDocument
if(arg) {this.load(arg);}
else {
this.type = "text";
}
}
JSONTextDocument.prototype = new JSONDocument();//inherits methods from JSONDocument
JSONTextDocument.prototype.saveEdition = function(content) {
this.setLastUser(getCurrentUser());
this.setLastUser(getCurrentUser().getName());
this.setContent(content);
this.setLastModification(currentTime());
this.setAsCurrentDocument();
......@@ -60,7 +68,5 @@ JSONTextDocument.prototype.setAsCurrentDocument = function() {
}
getCurrentDocument = function() {
var doc = new JSONTextDocument();
doc.load(JSON.parse(localStorage.getItem("currentDocument")));
return doc;
return new JSONTextDocument(JSON.parse(localStorage.getItem("currentDocument")));
}
......@@ -21,7 +21,6 @@ var Page = function(page) {
this.html = window.document;
this.xml = null;
this.editor = null;
//define as current page
currentPage = this;
if(page!=undefined) {this.loadXML("xml/"+page+".xml");}
......@@ -139,13 +138,17 @@ setCurrentPage = function(page) {currentPage = page;}
/*
* User Class
* stores useful information about a user and provides methods to manipulate them
* @param arg : a json User object to load
*/
var User = function(details) {
this.name = "unknown";
this.language = "en";
this.storage = "http://www.unhosted-dav.com";
this.identityProvider = "http://www.webfinger.com";
this.displayPreferences = 15;//number of displayed document in the list
var User = function(arg) {
if(arg) {this.load(arg);}
else {
this.name = "unknown";
this.language = "en";
this.storage = "http://www.unhosted-dav.com";
this.identityProvider = "http://www.webfinger.com";
this.displayPreferences = 15;//number of displayed document in the list
}
}
User.prototype = new UngObject();//inherits from UngObject
User.prototype.load({//add methods thanks to the UngObject.load method
......@@ -168,9 +171,7 @@ User.prototype.load({//add methods thanks to the UngObject.load method
});
getCurrentUser = function() {
var user = new User();
user.load(JSON.parse(localStorage.getItem("currentUser")));
return user;
return new User(JSON.parse(localStorage.getItem("currentUser")));
}
setCurrentUser = function(user) {localStorage.setItem("currentUser", JSON.stringify(user));}
......@@ -182,18 +183,24 @@ setCurrentUser = function(user) {localStorage.setItem("currentUser", JSON.string
* to manipulate these elements.
*/
/* JSON document */
var JSONDocument = function() {
this.language = getCurrentUser().getLanguage();
this.version = null;
this.author=getCurrentUser().getName();
this.lastUser=getCurrentUser().getName();
this.title="Untitled";
this.content="";
this.creation=currentTime();
this.lastModification=currentTime();
this.state=this.states.draft;
/**
* JSON document
* @param arg : a json JSONDocument object to load
*/
var JSONDocument = function(arg) {
if(arg) {this.load(arg);}
else {
this.language = getCurrentUser().getLanguage();
this.version = null;
this.author=getCurrentUser().getName();
this.lastUser=getCurrentUser().getName();
this.title="Untitled";
this.content="";
this.creation=currentTime();
this.lastModification=currentTime();
this.state=JSONDocument.prototype.states.draft;
}
}
JSONDocument.prototype = new UngObject();//inherits from UngObject
......@@ -240,7 +247,8 @@ JSONDocument.prototype.load({//add methods thanks to the UngObject.load method
save: function(instruction) {
var doc = this;
saveFile(getDocumentAddress(this), doc, instruction);
}
},
remove: function(instruction) {deleteFile(getDocumentAddress(this), instruction);}
});
JSONDocument.prototype.states = {
draft:{"fr":"Brouillon","en":"Draft"},
......@@ -248,9 +256,7 @@ JSONDocument.prototype.states = {
deleted:{"fr":"Supprimé","en":"Deleted"}
}
getCurrentDocument = function() {
var doc = new JSONDocument();
doc.load(JSON.parse(localStorage.getItem("currentDocument")));
return doc;
return new JSONDocument(JSON.parse(localStorage.getItem("currentDocument")));
}
setCurrentDocument = function(doc) {localStorage.setItem("currentDocument",JSON.stringify(doc));}
......@@ -269,28 +275,29 @@ getDocumentAddress = function(doc) {return "http://sidunhosted.com/ungdav/"+doc.
* open a dialog box to edit document information
*/
editDocumentSettings = function() {
loadFile("xml/xmlElements.xml", "html", function(data) {
$("rename", data).dialog({
autoOpen: true,
height: 131,
width: 389,
modal: true,
buttons: {
"Save": function(){
var doc = getCurrentDocument();
doc.setTitle($(this).find("#name").attr("value"));
doc.setLanguage($(getCurrentDocument()).find("#language").attr("value"));
doc.setVersion($(getCurrentDocument()).find("#version").attr("value"));
saveCurrentDocument();
doc.setAsCurrentDocument();//diplay modifications
$(this).dialog("close");
},
Cancel: function() {
$(this).dialog("close");
}
}
});
}
saveCurrentDocument();
loadFile("xml/xmlElements.xml", "html", function(data) {
$("rename", data).dialog({
autoOpen: true,
height: 131,
width: 389,
modal: true,
buttons: {
"Save": function(){
var doc = getCurrentDocument();
doc.setTitle($(this).find("#name").attr("value"));
doc.setLanguage($(getCurrentDocument()).find("#language").attr("value"));
doc.setVersion($(getCurrentDocument()).find("#version").attr("value"));
saveCurrentDocument();
doc.setAsCurrentDocument();//diplay modifications
$(this).dialog("close");
},
Cancel: function() {
$(this).dialog("close");
}
}
});
}
)}
saveCurrentDocument = function() {
......
......@@ -33,49 +33,132 @@ UngObject.prototype.inherits = function(superClass) {
this.prototype.load(superClass.prototype);
}
/* return true only if two objects are equals */
UngObject.prototype.equals = function(object) {
for (var property in object) {
if (this.hasOwnProperty(property)) {
var isEquals = this[property]&&typeof(this[property])=="object" ? UngObject.prototype.equals.call(this[property],object[property]) : this[property]===object[property];
if (!isEquals) {return false}
}
}
return true;
}
/**
* Class List
* this class provides usual API to manipulate list structure
* @param arg : a json list object
* @param contentType : the type of the elements of the list
*/
var List = function(arg) {
this.content = new Array();
if(arg) {this.content = arg;}
this.length = this.content.length;
var List = function(arg, contentType) {
if(arg && arg.headElement) {
if(contentType) {
this.headElement=new contentType(arg.headElement);
} else {
this.headElement = arg.headElement;
}
this.length = arg.length;
this.previous = new List(arg.previous, contentType);
}
else {
this.nullElement();
}
}
List.prototype = new UngObject();
List.prototype.load ({
List.prototype.load({
nullElement: function() {
this.headElement = null;
this.previous = undefined;
this.length = 0;
},
size: function() {return this.length;},
put: function(key,value) {
if(!this.content[key]) {this.length=this.length+1;}
alert(""+this.length+this.content[key]);
this.content[key]=value;
head: function() {return this.headElement;},
tail: function() {return this.previous;},
isEmpty: function() {return this.head()===null;},
equals: function(list) {
return this.head().equals(list.head()) && this.tail().equals(list.tail());
},
add: function(element) {this.put(this.size(),element);},
get: function(i) {return this.content[i];},
concat: function(list) {while(!list.isEmpty()) {this.add(list.pop())}},
remove: function(i) {delete this.content[i];this.length--;},
isEmpty: function() {return this.size()==0;},
head: function() {return this.isEmpty() ? null : this.get(this.size()-1);},
pop: function() {
if(this.isEmpty()) {return null;}
var element = this.get(this.size()-1);
this.remove(this.size()-1);
return element;
add: function(value) {
var t = new List();
t.load(this);
this.headElement = value;
this.previous = t;
this.length = t.size()+1;
},
recursiveCall: function(instruction) {
var list = new List();
list.load(this);
if(list.isEmpty()) {return false;}
var result = instruction(list.pop());
return result ? result : list.recursiveCall(instruction);
get: function(i) {
if(i>=this.size()) {return null;}
if(i==0) {return this.head();}
return this.tail().get(i-1);
},
set: function(i,element) {
if(i>=this.size()) {error("set out of bounds, "+i+" : "+this.size(),this);return}
if(i==0) {
this.headElement=element;
} else {
this.tail().set(i-1,element);
}
},
remove: function(i) {
if(i>=this.size()) {error("remove out of bounds, "+i+" : "+this.size(),this);return}//particular case
if(i==0) {this.pop();return}//particular case
if(i==1) {//init
this.previous = this.tail().tail();
} else {//recursion
this.tail().remove(i-1);
}
this.length--;
},
pop: function() {
if(this.isEmpty()) {error("pop on empty list",this);return null;}
var h = this.head();
this.load(this.tail())
return h;
},
find: function(object) {
for(var i = 0; i<this.length; i++) {if(this.get(i)===object) {return i;}}
return -1;
if(this.isEmpty()) {return -1}//init-false
var elt = this.head();
if(object.equals) {//init-true
if(object.equals(this.head())) {return 0;}//with an adapted comparator
} else {
if(object===this.head()) {return 0;}//with usual comparator
}
var recursiveResult = this.tail().find(object);//recursion
return recursiveResult>=0 ? this.tail().find(object)+1 : recursiveResult;
},
contains: function(object) { return (find(object)!=-1); }
contains: function(object) {if(this.isEmpty()) {return false} else {return object===this.head() ? true : this.tail().contains(object)}},
insert: function(element,i) {
if(i>this.size()) {error("insert out of bounds, "+i+" : "+this.size(),this);return}//particular case
if(i==0) {//init
this.add(element);
} else {//recursion
this.tail().insert(element,i-1);
this.length++;
}
},
replace: function(oldElement,newElement) {
if(this.isEmpty()) {error("<<element not found>> when trying to replace",this);return}//init-false
if(oldElement===this.head()) {
this.set(0,newElement);//init-true
} else {
this.tail().replace(oldElement,newElement);//recursion
}
},
removeElement: function(element) {//remove each occurence of the element in this list
if(this.isEmpty()) {return}
this.tail().removeElement(element);
if(element.equals) {//init-true
if(element.equals(this.head())) {this.pop();}//with an adapted comparator
} else {
if(element===this.head()) {this.pop();}//with usual comparator
}
}
});
error: function(message,object) {
errorObject = object;
console.log(message);
}
/**
* returns the current date
......@@ -87,17 +170,17 @@ currentTime = function() {return (new Date()).toUTCString();}
// save
saveXHR = function(address) {
$.ajax({
url: address,
type: "PUT",
headers: {
Authorization: "Basic "+btoa("smik:asdf")},
fields: {
withCredentials: "true"
},
data: JSON.stringify(getCurrentDocument()),
success: function(){alert("saved");},
error: function(xhr) { alert("error while saving");}
});
url: address,
type: "PUT",
headers: {
Authorization: "Basic "+btoa("smik:asdf")},
fields: {
withCredentials: "true"
},
data: JSON.stringify(getCurrentDocument()),
success: function(){alert("saved");},
error: function(xhr) { alert("error while saving");}
});
};
/**
......@@ -108,13 +191,14 @@ saveXHR = function(address) {
*/
loadFile = function(address, type, instruction) {
$.ajax({
url: address,
type: "GET",
url: address,
type: "GET",
dataType: type,
headers: { Authorization: "Basic "+btoa("smik:asdf")},
fields: { withCredentials: "true" },
success: instruction,
error: function(type) {t=type;alert("er");}
error: function(type) {alert("Error "+type.status+" : fail while trying to load "+address);}
});
}
......@@ -129,28 +213,41 @@ saveFile = function(address, content, instruction) {
fields: { withCredentials: "true" },
success: instruction,
error: function(type) {
if(type.status==201) {instruction();}//ajax thinks that 201 is an error...
if(type.status==201 || type.status==204) {instruction();}//ajax thinks that 201 is an error...
}
});
};
}
deleteFile = function(address, instruction) {
$.ajax({
url: address,
type: "DELETE",
headers: { Authorization: "Basic "+btoa("smik:asdf")},
fields: { withCredentials: "true" },
success: instruction,
error: function(type) {
alert(type.status);//ajax thinks that 201 is an error...
}
});
}
// load
loadXHR = function(address) {
$.ajax({
url: address,
type: "GET",
url: address,
type: "GET",
dataType: "json",
cache:false,
headers: {
Authorization: "Basic "+btoa("smik:asdf")},
cache:false,
headers: {
Authorization: "Basic "+btoa("smik:asdf")},
fields: {
withCredentials: "true"
withCredentials: "true"
},
success: function(data){
var cDoc = getCurrentDocument();
cDoc.load(data);
cDoc.setAsCurrentDocument();
}
success: function(data){
var cDoc = getCurrentDocument();
cDoc.load(data);
cDoc.setAsCurrentDocument();
}
});
}
......
......@@ -10,45 +10,62 @@ setCurrentDocumentID = function(ID) {return localStorage.setItem("currentDocumen
/**
* class DocumentList
* This class provides methods to manipulate the list of documents of the current user
* As the list is stored in the localStorage, we are obliged to call "setDocumentList" after
* any content modification
* @param arg : a documentList json object to load
*/
var DocumentList = function() {
List.call(this);
this.displayedPage = 1;
this.selectionList = new List();
var DocumentList = function(arg) {
//List.call(this);
if(arg) {
this.load(arg);
this.load(new List(arg,JSONDocument));
this.selectionList = new List(arg.selectionList,JSONDocument);//load methods of selectionList
}
else {
this.displayedPage = 1;
this.selectionList = new List();
}
}
DocumentList.prototype = new List();
DocumentList.prototype.load({
/* override : returns the ith document */
get: function(i) {
var doc = new JSONDocument();
doc.load(this.content[i]);
return doc;
addDocument: function(doc) {
this.add(doc);
setDocumentList(this);
this.display();
},
/* override : put an element at the specified position */
put: function(i, doc) {
this.content[i]=doc;
if(!this.content[i]) {this.length++;}
removeDocument: function(doc) {
var i = this.find(doc);
this.get(i).remove()//delete the file
this.remove(i);//remove from the list
setDocumentList(this);
this.display();
},
getSelectionList: function() {
var list = new List();
list.load(this.selectionList);
return list;
},
getSelectionList: function() { return this.selectionList; },
resetSelectionList: function() {
this.selectionList = new List();
for(var i=0; i<this.length; i++) {
$("tr td.listbox-table-select-cell input#"+i).attr("checked",false);
for(var i=0; i<this.size(); i++) {
$("tr td.listbox-table-select-cell input#"+i).attr("checked",false);//uncheck
}
setDocumentList(this);
$("span#selected_row_number a").html(0);//display the selected row number
},
checkAll: function() {
for(var i=0; i<this.length; i++) {
this.selectionList.put(i,this.get(i));
$("tr td.listbox-table-select-cell input#"+this.get(i).getID()).attr("checked",true);
this.selectionList = new List();
for(var i=0; i<this.size(); i++) {
this.getSelectionList().add(this.get(i));
$("tr td.listbox-table-select-cell input#"+i).attr("checked",true);
}
setDocumentList(this);
$("span#selected_row_number a").html(this.size());//display the selected row number
},
deleteSelectedDocuments: function() {
var selection = this.getSelectionList();
while(!selection.isEmpty()) {
var doc = selection.pop();
this.removeDocument(doc);
}
},
getDisplayedPage: function() {return this.displayedPage;},
......@@ -56,6 +73,7 @@ DocumentList.prototype.load({
/* display the list of documents in the web page */
displayContent: function() {
$("table.listbox tbody").html("");//empty the previous displayed list
var n = this.size();
for(var i=0;i<n;i++) {
var ligne = new Line(this.get(i),i);
......@@ -83,21 +101,22 @@ DocumentList.prototype.load({
/* update the ith document information */
update: function(i) {
var line = this;
var doc = line.get(i);
var list = this;
var doc = list.get(i);
loadFile(getDocumentAddress(doc),"json",function(data) {
doc.load(data);//todo : replace by data.header
doc.setContent("");//
line.put(i,doc);
list.set(i,doc);
setDocumentList(list);
});
}
});
getDocumentList = function() {
var list = new DocumentList();
list.load(JSON.parse(localStorage.getItem("documentList")));
return list;
return new DocumentList(JSON.parse(localStorage.getItem("documentList")));
}
setDocumentList = function(list) {
localStorage.setItem("documentList",JSON.stringify(list));
}
setDocumentList = function(list) {localStorage.setItem("documentList",JSON.stringify(list));}
/**
......@@ -120,20 +139,22 @@ Line.prototype = {
return $("tr td.listbox-table-select-cell input#"+this.getID()).attr("checked");
},
/* add the document of this line to the list of selected documents */
addToSelection: function() {
var list = getDocumentList();
list.getSelectionList().put(this.getID(),this);
list.getSelectionList().add(this.getDocument());
setDocumentList(list);
},
/* remove the document of this line from the list of selected documents */
removeFromSelection: function() {
var list = getDocumentList();
list.getSelectionList().remove(this.getID());
list.getSelectionList().removeElement(this.getDocument());
setDocumentList(list);
},
/* check or uncheck the line */
changeState: function() {
this.isSelected() ? this.addToSelection() : this.removeFromSelection();
test = getDocumentList().getSelectionList();
$("span#selected_row_number a").html(getDocumentList().getSelectionList().size());
$("span#selected_row_number a").html(getDocumentList().getSelectionList().size());//display the selected row number
},
/* load the document information in the html of a default line */
......@@ -180,11 +201,7 @@ var createNewDocument = function(type) {
newDocument.setType(type);
newDocument.save(function() {
getDocumentList().add(newDocument);
getDocumentList().addDocument(newDocument);
startDocumentEdition(newDocument);
});
}
var deleteSelectedDocuments = function() {
}
\ No newline at end of file
......@@ -36,7 +36,6 @@
var initUser = function() {
var user = getCurrentUser();
if(!user) { user = new User();}
user.setAsCurrentUser();
}
......
......@@ -36,10 +36,16 @@
}
var init = function() {
//delete localStorage.documentList;//delete the list for tests
setCurrentPage(new Page());//provide methods on the page
initUser();//initialize the user
if(getCurrentDocumentID()) {getDocumentList().update(getCurrentDocumentID());}//update the list of documents
if(getCurrentDocumentID()&&getDocumentList().get(getCurrentDocumentID())) {
/* update the list with the modifications of the last edited document
* (this method has to been rewritten if using multi users) */
getDocumentList().update(getCurrentDocumentID());
delete localStorage.currentDocumentID;
}
waitBeforeSucceed(//display the list of documents
function(){return Line.loadHTML()},function() {
getDocumentList().resetSelectionList();
......@@ -53,585 +59,580 @@
</script>
</head>
<body>
<form id="main_form" class="main_form"
onsubmit="changed=false; return true"
method="post">
<div class="container">
<div class="navigation">
<div class="container">
<div class="navigation">
<!-- Each aggregate of groups is a div wrapper -->
<div class="wrapper" id="wrapper_navigation">
<!-- Each aggregate of groups is a div wrapper -->
<div class="wrapper" id="wrapper_navigation">
<div class=" navigation-left">
<fieldset class="widget">
<legend class="group_title"></legend>
<div class=" navigation-left">
<fieldset class="widget">
<legend class="group_title"></legend>
<div class="field" title="">
<div class="field" title="">
<label> navigation_box </label>
<label> navigation_box </label>
<div class="input"><div >
<a class="email" href="/ung/mail">Email</a>
<a class="document" href="#" onclick="window.location.reload()">Documents</a>
<a class="calendar" href="/ung/calendar">Calendar</a>
</div></div>
</div>
<div class="input"><div >
<a class="email" href="/ung/mail">Email</a>
<a class="document" href="#" onclick="window.location.reload()">Documents</a>
<a class="calendar" href="/ung/calendar">Calendar</a>
</div></div>
</div>
<div class="field date_field" title="The Date">
<div class="field date_field" title="The Date">
<label> Modification Date </label>
<div class="input"></div>
<label> Modification Date </label>
<div class="input"></div>
</div>
</div>
</fieldset>
</div>
</fieldset>
</div>
<div class=" navigation-right">
<fieldset class="widget">
<div class=" navigation-right">
<fieldset class="widget">
<legend class="group_title"></legend>
<legend class="group_title"></legend>
<div class="field" title="">
<div class="field" title="">
<label> your_language </label>
<label> your_language </label>
<div class="input"><div >
<div id="select_language">
<div class="input"><div >
<div id="select_language">
<ul><li>
<span id="current_language">en</span>
<img src="images/ung/arrow_20C.png"/>
<ul id="available_languages">
<li></li>
</ul>
</li></ul>
<ul><li>
<span id="current_language">en</span>
<img src="images/ung/arrow_20C.png"/>
<ul id="available_languages">
<li></li>
</ul>
</li></ul>
</div>
</div></div>
</div>
</div></div>
</div>
</div>
<div class="field" title="">
<div class="field" title="">
<label> user_login_box </label>
<label> user_login_box </label>
<div class="input"><div >
<div class="input"><div >
<a id="right_message">Not Implemented yet</a>
<div id="preference_dialog" title="UNG Preferences"></div>
<a id="userName">Unknown</a>
| <a id="settings" href="#">Settings</a>
| <a id="help" href="#">Help</a>
| <a href="..WebSite_logout">Sign out</a>
<a id="right_message">Not Implemented yet</a>
<div id="preference_dialog" title="UNG Preferences"></div>
<a id="userName">Unknown</a>
| <a id="settings" href="#">Settings</a>
| <a id="help" href="#">Help</a>
| <a href="..WebSite_logout">Sign out</a>
</div></div>
</div></div>
</div>
</div>
</fieldset>
</div>
</fieldset>
</div>
</div>
</div>
<div class="header">
<div class="header">
<!-- Each aggregate of groups is a div wrapper -->
<div class="wrapper" id="wrapper_header">
<!-- Each aggregate of groups is a div wrapper -->
<div class="wrapper" id="wrapper_header">
<div class=" header-left">
<fieldset class="widget">
<div class=" header-left">
<fieldset class="widget">
<legend class="group_title"></legend>
<legend class="group_title"></legend>
<div class="field" title="">
<div class="field" title="">
<label> search_bar </label>
<label> search_bar </label>
<div class="input"><div >
<div class="input"><div >
<a class="ung_docs" href="#" onclick="window.location.reload()">
<img src="images/ung/ung-logo.gif"/>
</a>
<a id="loading_message">Loading...</a>
<a class="ung_docs" href="#" onclick="window.location.reload()">
<img src="images/ung/ung-logo.gif"/>
</a>
<a id="loading_message">Loading...</a>
<form>
<input type="text" name="field_your_search_text" class="field" onkeyup="submitFormOnEnter(event, this.form, 'WebSection_viewSearchResultList')" />
<input type="submit" value="Search Docs" name="WebSection_viewSearchResultList:method" />
</form>
<form>
<input type="text" name="field_your_search_text" class="field" onkeyup="submitFormOnEnter(event, this.form, 'WebSection_viewSearchResultList')" />
<input type="submit" value="Search Docs" name="WebSection_viewSearchResultList:method" />
</form>
</div></div>
</div>
</fieldset>
</div>
</div></div>
</div>
</fieldset>
</div>
</div>
</div>
<div class="main">
<!-- Each aggregate of groups is a div wrapper --
<table class="wrapper" id="wrapper_main"><tr>-->
<div class="wrapper" id="wrapper_main">
<!--<td class=" main-left">-->
<div class=" main-left">
<fieldset class="widget">
<legend class="group_title"></legend>
<div class="field" title="">
<label> user_menu_box </label>
<div class="input"><div >
<div class="gadget-column">
<div class="gadget-action">
<div class="menu_create_object">
<ul><li>
<a id="current">
<span>Create New</span>
<img src="images/ung/arrow.png"/>
</a>
<ul>
<li>
<a href="#" onclick="createNewDocument('illustration')">
<img src="images/icons/svg.png" alt=""/>
<span>Web Illustration</span>
</a>
</li>
<li>
<a href="#" onclick="createNewDocument('table')">
<img src="images/icons/table.png" alt=""/>
<span>Web Table</span>
</a>
</li>
<li>
<a href="#" onclick="createNewDocument('text')">
<img src="images/icons/document.png"/>
<span>Web Page</span>
</a>
</li>
</ul>
</li></ul>
</div>
<div class="main">
<!-- Each aggregate of groups is a div wrapper --
<table class="wrapper" id="wrapper_main"><tr>-->
<div class="wrapper" id="wrapper_main">
<!--<td class=" main-left">-->
<div class=" main-left">
<fieldset class="widget">
<legend class="group_title"></legend>
<div class="field" title="">
<label> user_menu_box </label>
<div class="input"><div >
<div class="gadget-column">
<div class="gadget-action">
<div class="menu_create_object">
<ul><li>
<a id="current">
<span>Create New</span>
<img src="images/ung/arrow.png"/>
</a>
<ul>
<li>
<a href="#" onclick="createNewDocument('illustration')">
<img src="images/icons/svg.png" alt=""/>
<span>Web Illustration</span>
</a>
</li>
<li>
<a href="#" onclick="createNewDocument('table')">
<img src="images/icons/table.png" alt=""/>
<span>Web Table</span>
</a>
</li>
<li>
<a href="#" onclick="createNewDocument('text')">
<img src="images/icons/document.png"/>
<span>Web Page</span>
</a>
</li>
</ul>
</li></ul>
</div>
<input type="submit" id="upload" name="Upload" value="Upload" />
<div class="file-selection">
<div class="file-quick-search">
<div class="listbox-tree">
<!-- Domain Report Tree mode -->
<div class="listbox-domain-tree-container">
<input type="submit" id="upload" name="Upload" value="Upload" />
<div class="file-selection">
<div class="file-quick-search">
<div class="listbox-tree">
<!-- Domain Report Tree mode -->
<div class="listbox-domain-tree-container">
<!-- Select domain node -->
<select name="domain_root_url" onchange="submitAction(this.form, '/ung/setDomainRoot')">
<option value="ung_domain" selected="selected">UNG Documents</option>
</select>
<!-- Domain node contents -->
<table cellpadding="0"
summary="This table contains the domain tree"
class="your_listbox-table-domain-tree">
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/all_documents.0">All Documents</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
<!-- Select domain node -->
<select name="domain_root_url" onchange="submitAction(this.form, '/ung/setDomainRoot')">
<option value="ung_domain" selected="selected">UNG Documents</option>
</select>
<!-- Domain node contents -->
<table cellpadding="0"
summary="This table contains the domain tree"
class="your_listbox-table-domain-tree">
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/by_subject.0">By Subject</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/hidden.0">Hidden</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/owner.0">Owner</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/recent.0">Recent</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/shared.0">Shared by me</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/starred.0">Starred</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/trash.0">Trash</button>
</td>
</tr>
</table>
value="ung_domain/all_documents.0">All Documents</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/by_subject.0">By Subject</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/hidden.0">Hidden</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/owner.0">Owner</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/recent.0">Recent</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/shared.0">Shared by me</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/starred.0">Starred</button>
</td>
</tr>
<tr>
<td colspan="1" class="listbox-table-domain-tree-cell">
<button type="submit"
name="unfoldDomain:method"
class="tree-closed"
value="ung_domain/trash.0">Trash</button>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="gadget-listbox" id="gadget-listbox" title="Add Gadgets">
<table id="gadget-table"></table>
</div>
<div class="front_pad">
<div class="gadget-listbox" id="gadget-listbox" title="Add Gadgets">
<table id="gadget-table"></table>
</div>
<!-- XXX - Use WebSection_viewKnowledgePadColumn to display one column only -->
<div class="draggable_wrapper">
<div class="front_pad">
<div id="gadget_area_wrapper">
<div id="pad-navigation-wrapper">
<!-- XXX - Use WebSection_viewKnowledgePadColumn to display one column only -->
<div class="draggable_wrapper">
<div class="tab" id="tabs_switcher">
<span id="tab_switcher_hidden" style="display:none">Show tabs</span>
<span id="tab_switcher_visible">Hide tabs</span>
</div>
<div id="gadget_area_wrapper">
<div id="pad-navigation-wrapper">
<div id="tabs" style="display: block">
<ul>
<div class="tab" id="tabs_switcher">
<span id="tab_switcher_hidden" style="display:none">Show tabs</span>
<span id="tab_switcher_visible">Hide tabs</span>
</div>
<li id="knowledge_pad_module_1" class="tab tab_selected">
<div id="tabs" style="display: block">
<ul>
<span id="knowledge_pad_module_1_title" onclick="loadPadFromServer('knowledge_pad_module/1', 'knowledge_pad_module_1', 'web_front')">Onglet 1</span>
<li id="knowledge_pad_module_1" class="tab tab_selected">
<div class="pad-actions" style="display:block">
<span title="Settings"
class="clickable_image rename_tab_dialog_image"
onclick="showRenamePadPopup('knowledge_pad_module/1',
'knowledge_pad_module_1_title')"></span>
<span title="Remove"
class="clickable_image remove_tab_dialog_image"
onclick=" removeKnowledgePadFromServer(
'knowledge_pad_module/1', 'web_front')" />
</div>
<span id="knowledge_pad_module_1_title" onclick="loadPadFromServer('knowledge_pad_module/1', 'knowledge_pad_module_1', 'web_front')">Onglet 1</span>
</li>
<div class="pad-actions" style="display:block">
<span title="Settings"
class="clickable_image rename_tab_dialog_image"
onclick="showRenamePadPopup('knowledge_pad_module/1',
'knowledge_pad_module_1_title')"></span>
<span title="Remove"
class="clickable_image remove_tab_dialog_image"
onclick=" removeKnowledgePadFromServer(
'knowledge_pad_module/1', 'web_front')" />
</div>
<li class="tab" onclick="showAddNewPadPopup();"
title="Add new tab"
id="add_new_tab_dialog_link">Add tab</li>
</li>
</ul>
</div>
<li class="tab" onclick="showAddNewPadPopup();"
title="Add new tab"
id="add_new_tab_dialog_link">Add tab</li>
<div id="add_new_gadget_link">
<a title="Add gadgets" id="add-gadgets" href="..."><span>Add gadgets</span></a>
</div>
</ul>
</div>
</div>
<div id="add_new_gadget_link">
<a title="Add gadgets" id="add-gadgets" href="..."><span>Add gadgets</span></a>
</div>
<div id="loading-wrapper" style="display:none;">
<img src="ajax-loader.gif" title="Loading" alt="Loading" />
<p> Please wait while your changes are being applied. </p>
</div>
</div>
<!-- Render active Knowledge pad -->
<div id="pad-body-wrapper">
<div id="page_wrapper">
<div id="loading-wrapper" style="display:none;">
<img src="ajax-loader.gif" title="Loading" alt="Loading" />
<p> Please wait while your changes are being applied. </p>
</div>
<!-- No gadgets message -->
<div>
<h3> Your tab is empty. </h3>
<h4> Please use link (<b>Add gadgets</b>) to prepare it yourself. </h4>
</div>
<!-- Render active Knowledge pad -->
<div id="pad-body-wrapper">
<div id="page_wrapper">
<!-- Render pad columns -->
<div class="portal-column" id="portal-column-0"></div>
<!-- No gadgets message -->
<div>
<h3> Your tab is empty. </h3>
<h4> Please use link (<b>Add gadgets</b>) to prepare it yourself. </h4>
</div>
</div>
<!-- Hidden dialogs -->
<div id="add_new_tab_dialog" class="toggable_dialog">
<!-- Render pad columns -->
<div class="portal-column" id="portal-column-0"></div>
</div>
</div>
<h3> Add new tab </h3>
<span>Tab name</span>:
<input type="text" value="" name="pad_title"
id="new_pad_title"
onkeypress=" return addPadOnServerOnEnter(event, 'web_front', 'view')" />
<br />
<br />
<!-- Hidden dialogs -->
<div id="add_new_tab_dialog" class="toggable_dialog">
<button type="button" onclick="$('#add_new_tab_dialog').toggle();">Cancel</button>
<button type="button"
id="add_new_tab_dialog_add_button"
onclick="addPadOnServer('web_front', 'view')">Add</button>
<h3> Add new tab </h3>
<span>Tab name</span>:
<input type="text" value="" name="pad_title"
id="new_pad_title"
onkeypress=" return addPadOnServerOnEnter(event, 'web_front', 'view')" />
<br />
<br />
</div>
<button type="button" onclick="$('#add_new_tab_dialog').toggle();">Cancel</button>
<button type="button"
id="add_new_tab_dialog_add_button"
onclick="addPadOnServer('web_front', 'view')">Add</button>
<div id="rename_tab_dialog" class="toggable_dialog">
</div>
<h3> Rename tab </h3>
<span>Tab name</span>:
<input type="text" id="new_knowledge_pad_title"
name="knowledge_pad_title"
onkeypress="return renameKnowledgePadToServerOnEnter(event);"
value="Onglet 1" />
<br />
<br />
<div id="rename_tab_dialog" class="toggable_dialog">
<button type="button" onclick="$('#rename_tab_dialog').toggle();">Cancel</button>
<button type="button"
id="rename_tab_dialog_rename_button"
onclick="renameKnowledgePadToServer();"> Rename </button>
<h3> Rename tab </h3>
<span>Tab name</span>:
<input type="text" id="new_knowledge_pad_title"
name="knowledge_pad_title"
onkeypress="return renameKnowledgePadToServerOnEnter(event);"
value="Onglet 1" />
<br />
<br />
</div>
<button type="button" onclick="$('#rename_tab_dialog').toggle();">Cancel</button>
<button type="button"
id="rename_tab_dialog_rename_button"
onclick="renameKnowledgePadToServer();"> Rename </button>
<!-- Show message that default pad is being prepared. -->
<!-- Create (asynch) default pad. -->
</div>
<!-- Show message that default pad is being prepared. -->
<!-- Create (asynch) default pad. -->
</div>
</div>
</div>
</div></div>
</div>
</fieldset>
</div>
<div class=" main-right">
<fieldset class="widget">
</div>
</div></div>
</div>
</fieldset>
</div>
<div class=" main-right">
<legend class="group_title"></legend>
<fieldset class="widget">
<div class="field" title="">
<legend class="group_title"></legend>
<label> favorite_box </label>
<div class="input"><div >
<div class="favorite">
<a class="domain_selected"></a>
<div class="field" title="">
<a href="#" onclick="javascript:window.location.reload()">Refresh</a>
</div>
</div></div>
<label> favorite_box </label>
<div class="input"><div >
<div class="favorite">
<a class="domain_selected"></a>
</div>
<a href="#" onclick="javascript:window.location.reload()">Refresh</a>
</div>
</div></div>
<div class="field" title="">
<label> Toolbar </label>
</div>
<div class="input"><div >
<div class="toolbar">
<button name="WebSection_deleteObjectList:method"
type="submit"
class="delete">Delete</button>
<button name="#" type="submit" class="change_state">Change State</button>
</div>
</div></div>
<div class="field" title="">
<label> Toolbar </label>
</div>
<div class="input"><div >
<div class="toolbar">
<button class="delete"
onclick="getDocumentList().deleteSelectedDocuments()">Delete
</button>
<button name="#" class="change_state">Change State</button>
</div>
</div></div>
</div>
<div class="field" title="">
<div class="field" title="">
<label> Document List </label>
<label> Document List </label>
<div class="input">
<div class="input">
<div class="listbox-container">
<div class="listbox-container">
<div class="listbox-content listbox-content-fixed-width">
<div class="listbox-head">
<div class="listbox-content listbox-content-fixed-width">
<div class="listbox-head">
<div class="listbox-head-spacer"></div>
<div class="listbox-head-spacer"></div>
<div class="listbox-head-content">
<div class="listbox-head-content">
<!-- Listbox head (in left) -->
<div class="listbox-head-title">
<!-- Listbox head (in left) -->
<div class="listbox-head-title">
<!-- List tree mode choice -->
<!-- Listbox title -->
<div class="listbox-header-box">
<div class="listbox-title">
<a href="..." class="your_listbox_title">
<span>Document List</span></a>
</div>
<!-- List tree mode choice -->
<!-- Listbox title -->
<div class="listbox-header-box">
<div class="listbox-title">
<a href="..." class="your_listbox_title">
<span>Document List</span></a>
</div>
</div>
<!-- Number of rows in ERP5 mode -->
<!-- List style display mode -->
<!-- Number of rows in ERP5 mode -->
<!-- List style display mode -->
</div>
</div>
<!-- Listbox nagivation (in right) -->
<div class="listbox-head-navigation">
<!-- Listbox nagivation (in right) -->
<div class="listbox-head-navigation">
<!--Show search result in web mode-->
<div class="listbox-header-box">
<div class="listbox-number-of-records">
<!--Show search result in web mode-->
<div class="listbox-header-box">
<div class="listbox-number-of-records">
<!-- listbox start - stop number -->
<span id="page_start_number" class="listbox-current-page-start-number">1</span> -
<span id="page_stop_number" class="listbox-current-page-stop-number">...</span>
<span>of</span>
<!-- listbox start - stop number -->
<span id="page_start_number" class="listbox-current-page-start-number">1</span> -
<span id="page_stop_number" class="listbox-current-page-stop-number">...</span>
<span>of</span>
<!-- listbox total rows number -->
<span id="total_row_number" class="listbox-current-page-total-number your_listbox-current-page-total-number">
<a>?</a> records
</span>
<!-- listbox total rows number -->
<span id="total_row_number" class="listbox-current-page-total-number your_listbox-current-page-total-number">
<a>?</a> records
</span>
<!-- listbox selected rows number -->
<span id="selected_row_number" class="your_listbox-current-item-number">
- <a>0</a> items selected
</span>
<!-- listbox selected rows number -->
<span id="selected_row_number" class="your_listbox-current-item-number">
- <a>0</a> items selected
</span>
</div>
</div>
<!--Page navigation -->
</div>
</div>
<!--Page navigation -->
</div>
</div>
<div class="listbox-body">
<table class="listbox your_listbox your_listbox-table">
<thead>
<!--Column title -->
<tr class="listbox-label-line">
<!--Report tree-->
<!-- Anchor cell -->
<!-- Select cell -->
<th class="listbox-table-select-cell">
<input class="listbox-check-all" type="image"
name="your_listbox_checkAll:method"
value="1" alt="Check All"
title="Check All"
onclick="getDocumentList().checkAll()"
src="images/icons/checkall.png" />
&nbsp;
<input class="listbox-uncheck-all"
type="image"
name="your_listbox_uncheckAll:method"
value="1" alt="Uncheck All"
title="Uncheck All"
onclick="getDocuementList().resetSelectionList()"
src="images/icons/decheckall.png" />
</th>
<!-- Label column row -->
<th class="listbox-table-header-cell"></th>
<th class="listbox-table-header-cell">
<!-- Button in normal view -->
<!-- Button in gadget mode -->
<button type="button" class="sort-button"
onclick=""
title="Title">
<span>Title</span>
</button>
<!-- Icon showing sort order -->
<img src="images/ung/transparent-image.gif"
alt="Sort" class="sort-button"
title="Sort" />
</th>
<th class="listbox-table-header-cell">
<!-- Button in normal view -->
<!-- Button in gadget mode -->
<button type="button"
class="sort-button"
onclick=""
title="Sharing">
<span>Sharing</span>
</button>
<!-- Icon showing sort order -->
<img src="images/ung/transparent-image.gif"
alt="Sort" class="sort-button"
title="Sort" />
</th>
<th class="listbox-table-header-cell">
<!-- Button in normal view -->
<!-- Button in gadget mode -->
<button type="button"
class="sort-button"
onclick=""
title="Date">
<span>Date</span>
</button>
<!-- Icon showing sort order -->
<img src="images/ung/transparent-image.gif"
alt="Sort" class="sort-button"
title="Sort" />
</th>
</tr>
<!--Search column input -->
</thead>
<!-- Stats -->
<tbody></tbody>
</table>
</div>
</div>
<div class="listbox-body">
<table class="listbox your_listbox your_listbox-table">
<thead>
<!--Column title -->
<tr class="listbox-label-line">
<!--Report tree-->
<!-- Anchor cell -->
<!-- Select cell -->
<th class="listbox-table-select-cell">
<input class="listbox-check-all" type="image"
name="your_listbox_checkAll:method"
value="1" alt="Check All"
title="Check All"
onclick="getDocumentList().checkAll()"
src="images/icons/checkall.png" />
&nbsp;
<input class="listbox-uncheck-all"
type="image"
name="your_listbox_uncheckAll:method"
value="1" alt="Uncheck All"
title="Uncheck All"
onclick="getDocumentList().resetSelectionList()"
src="images/icons/decheckall.png" />
</th>
<!-- Label column row -->
<th class="listbox-table-header-cell"></th>
<th class="listbox-table-header-cell">
<!-- Button in normal view -->
<!-- Button in gadget mode -->
<button type="button" class="sort-button"
onclick=""
title="Title">
<span>Title</span>
</button>
<!-- Icon showing sort order -->
<img src="images/ung/transparent-image.gif"
alt="Sort" class="sort-button"
title="Sort" />
</th>
<th class="listbox-table-header-cell">
<!-- Button in normal view -->
<!-- Button in gadget mode -->
<button type="button"
class="sort-button"
onclick=""
title="Sharing">
<span>Sharing</span>
</button>
<!-- Icon showing sort order -->
<img src="images/ung/transparent-image.gif"
alt="Sort" class="sort-button"
title="Sort" />
</th>
<th class="listbox-table-header-cell">
<!-- Button in normal view -->
<!-- Button in gadget mode -->
<button type="button"
class="sort-button"
onclick=""
title="Date">
<span>Date</span>
</button>
<!-- Icon showing sort order -->
<img src="images/ung/transparent-image.gif"
alt="Sort" class="sort-button"
title="Sort" />
</th>
</tr>
<!--Search column input -->
</thead>
<!-- Stats -->
<tbody></tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</fieldset>
</fieldset>
</div>
</div>
</div></div>
</form>
</div>
</div></div>
</body>
</html>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment