Commit a09931b8 authored by Lingnan Wu's avatar Lingnan Wu

remove all the html file and make all the gadgets in the portal_gadgets file...

remove all the html file and make all the gadgets in the portal_gadgets file and the main html file is the index.html
parent 9f2f3ca2
[{"name":"Color Palette","url":"gadgets\/sample\/colorpalette_oam.xml"},
{"name":"Date Listener","url":"gadgets\/sample\/dateListener.oam.xml"}]
<html class="no-js" lang="en" >
<!-- the "no-js" class is for Modernizr. -->
<head id="UNGinitial" data-template-set="html5-reset">
<meta charset="utf-8">
<!-- all our JS is at the bott om of the page, except for Modernizr. -->
<script src="_/js/modernizr-1.7.min.js"></script>
<!--[if IE]><link rel="stylesheet" href="_/css/_patches/win-ie-all.css" media="all" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="_/css/_patches/win-ie7.css" media="all" /><![endif]-->
<!--[if lte IE 6]><script src="_/js/ieupgrade/warning.js"></script><script>window.onload=function(){e("_/js/ieupgrade/")}</script><![endif]-->
<title id="page_title"> UNGDoc </title>
<!--make a user -->
<script type="text/javascript" src="js/jquery/jquery.js">
</script>
<script type="text/javascript" src="js/tools.js">
</script>
<script type="text/javascript" src="unhosted/jio.js">
</script>
<script type="text/javascript" src="js/theme.js">
</script>
<script type="text/javascript" src="js/ung.js">
</script>
<script type="text/javascript" src="js/login.js">
</script>
<!--INitial storage-->
<script type="text/javascript"">
var wallet = new Wallet();
setWallet(wallet);
initStorage(wallet);
</script>
<!--java script for choose to show the ung or the theme-->
<script type="text/javascript" src="js/ung-theme.js"></script>
<!--For the UNG gadget-->
<meta name="generator" content="ERP5 - Copyright (C) 2001 - 2008. All rights reserved." />
<meta name="description"
content="ERP5 Free Open Source ERP and CRM" />
<meta name="keywords" content="" />
<meta name="robots" content="index, follow" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link type="text/css" rel="stylesheet" href="css/ung.css" />
<link type="text/css" rel="stylesheet" href="css/jquery-ui.css" />
<script type="text/javascript" src="openajaxhub/src/OpenAjax-mashup.js"></script>
<script type="text/javascript" src="openajaxhub/src/containers/inline/inline.js"></script>
<script type="text/javascript" src="openajaxhub/src/containers/iframe/iframe.js"></script>
<script type="text/javascript" src="openajaxhub/src/containers/iframe/FIM.js"></script>
<script type="text/javascript" src="openajaxhub/src/containers/iframe/json2.js"></script>
<script type="text/javascript" src="openajaxhub/src/containers/iframe/crypto.js"></script>
<script type="text/javascript" src="js/tools.js"></script>
<script type="text/javascript" src="unhosted/jio.js"></script>
<script type="text/javascript" src="js/theme.js"></script>
<script type="text/javascript" src="js/ung.js"></script>
<script type="text/javascript" src="js/loader.js"></script>
<script type="text/javascript" src="js/minimashup.js"></script>
<script>
/* var baseURL = window.location.protocol + "//" + window.location.host + window.location.pathname.substring( 0, window.location.pathname.lastIndexOf("/")+1 );
djConfig = { usePlainJson: true, parseOnLoad: false, isDebug: false,
modulePaths: { "nomad": baseURL + "nomad"} };*/
</script>
<link rel="icon" type="image/x-icon" href="images/ung/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="images/ung/favicon.ico" />
<script type="text/javascript">
var initung = function() {
//initialize page and storage, then user, and then document List
Page.initialize("ung");//provide methods on the page
Storage.initialize();//initialize storage
}
$(document).ready(initung);
</script>
<!--For the theme gadget-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="keywords" content="" />
<meta name="robots" content="index, follow" />
<link rel="icon" type="image/x-icon"
href="images/ung/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon"
href="images/ung/favicon.ico" />
<!-- this is a placeholder for different extensions to head which could be required by web themes -->
<!-- jquery -->
<link type="text/css" rel="stylesheet" href="css/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="css/ung.css" />
<script type="text/javascript" src="js/tools.js"></script>
<script type="text/javascript" src="unhosted/jio.js"></script>
<script type="text/javascript" src="js/theme.js"></script>
<script type="text/javascript">
</script>
<!--Table Required-->
<link rel="stylesheet" type="text/css" href="jquery.sheet/jquery.sheet.css" />
<link rel="stylesheet" type="text/css" href="jquery.sheet/jquery-ui/theme/jquery-ui.css" />
<script type="text/javascript" src="jquery.sheet/jquery-1.5.2.js">
</script>
<script type="text/javascript" src="jquery.sheet/jquery.sheet.js">
</script>
<script type="text/javascript" src="jquery.sheet/parser.js">
</script>
<!--/Required-->
<!--Table Optional-->
<!--ScrollTo-->
<script type="text/javascript" src="jquery.sheet/plugins/jquery.scrollTo-min.js"></script>
<!--/ScrollTo-->
<!--jQuery UI-->
<script type="text/javascript" src="jquery.sheet/jquery-ui/ui/jquery-ui.min.js"></script>
<!--/jQuery UI-->
<!--Raphaeljs - for charts-->
<script type="text/javascript" src="jquery.sheet/plugins/raphael-min.js"></script>
<script type="text/javascript" src="jquery.sheet/plugins/g.raphael-min.js"></script>
<!--/Raphaeljs-->
<!--ColorPicker-->
<link rel="stylesheet" type="text/css" href="jquery.sheet/plugins/jquery.colorPicker.css" />
<script type="text/javascript" src="jquery.sheet/plugins/jquery.colorPicker.min.js"></script>
<!--/ColorPicker-->
<!--Theme Switcher Tool-->
<!--<script type="text/javascript" src="http://jqueryui.com/themeroller/themeswitchertool/"></script>-->
<!--/Theme Switcher Tool-->
<!--Elastic-->
<script type="text/javascript" src="jquery.sheet/plugins/jquery.elastic.min.js"></script>
<!--/Elastic-->
<!--Advanced_Math-->
<script type="text/javascript" src="jquery.sheet/jquery.sheet.advancedfn.js"></script>
<!--/Advanced_Math-->
<!--Finance-->
<script type="text/javascript" src="jquery.sheet/jquery.sheet.financefn.js"></script>
<!--/Finance-->
<body>
<!-- Gadget work start here -->
<div id="application" gadget="portal_gadgets/application/gadget.html"
gadget:property="{}">
<div id="top_menu" gadget="portal_gadgets/top_menu/gadget.html"
gadget:property="{}"></div>
<div id="header" gadget="portal_gadgets/header/gadget.html"
gadget:property="{}"></div>
<div id="content" gadget="portal_gadgets/content/gadget.html"
gadget:property="{}"></div>
</div>
<!-- EOF: Gadget work start here -->
<!-- here comes the javascript -->
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script src="_/js/jquery-ui/js/jquery-ui-1.8.13.custom.min.js"></script>
<!-- this is where we put our custom functions -->
<script src="_/js/functions.js"></script>
<!-- Gadget library goes here -->
<script src="_/js/renderjs/renderjs.js"></script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<script type="text/javascript"> function reloc(url) {window.location.replace(url);}</script>
</head>
<body onload="reloc('ung.html');">
</body>
</html>
This diff is collapsed.
<!-- Root application gadget code goes here -->
\ No newline at end of file
<div id="ungcontent" gadget="portal_gadgets/ungcontent/gadget.html"
gadget:property="{}"></div>
<div id="themecontent" style="display:none" gadget="portal_gadgets/themecontent/gadget.html"
gadget:property="{}"></div>
<div id="ungcontent" gadget="portal_gadgets/ungcontent/gadget.html"
gadget:property="{}"></div>
<div id="ungheader" gadget="portal_gadgets/ungheader/gadget.html"
gadget:property="{}"></div>
<div id="themeheader" style="display:none;"gadget="portal_gadgets/themeheader/gadget.html"
gadget:property="{}"></div>
<script type="text/javascript">
var showUngHeader=function(m) {
if(m==false){
document.getElementById("ungheader").style.display='none';
document.getElementById("themeheader").style.display='block';
}
else{
document.getELementById("ungheader").style.display='block';
document.getELementById("themeheader").style.display='none';
}
}
</script>
<div id="ungheader" gadget="portal_gadgets/ungheader/gadget.html"
gadget:property="{}"></div>
<div id="themeheader" style="display:none;"gadget="portal_gadgets/themeheader/gadget.html"
gadget:property="{}"></div>
<div class="main">
<div class="document">
<div class="content editable">
<fieldset class="bottom editable">
<div id="page_content" class="field page">
</div>
<div id="document_content" class="field hidden">
</div>
</fieldset>
</div>
</div>
</div>
</div>
<!--jquery sheet content-->
<span id="inlineMenu" style="display: none;">
<span>
<span>
<a href="#" onclick="sheetInstance.controlFactory.addRow(); return false;" title="Insert Row After Selected">
<img alt="Insert Row After Selected" src="jquery.sheet/images/sheet_row_add.png"/></a>
<a href="#" onclick="sheetInstance.controlFactory.addRow(null, true); return false;" title="Insert Row Before Selected">
<img alt="Insert Row Before Selected" src="jquery.sheet/images/sheet_row_add.png"/></a>
<a href="#" onclick="sheetInstance.controlFactory.addRow(null, null, ':last'); return false;" title="Add Row At End">
<img alt="Add Row" src="jquery.sheet/images/sheet_row_add.png"/></a>
<a href="#" onclick="sheetInstance.controlFactory.addRowMulti(); return false;" title="Add Multi-Rows">
<img alt="Add Multi-Rows" src="jquery.sheet/images/sheet_row_add_multi.png"/></a>
<a href="#" onclick="sheetInstance.deleteRow(); return false;" title="Delete Row">
<img alt="Delete Row" src="jquery.sheet/images/sheet_row_delete.png"/></a>
<a href="#" onclick="sheetInstance.controlFactory.addColumn(); return false;" title="Insert Column After Selected">
<img alt="Insert Column After Selected" src="jquery.sheet/images/sheet_col_add.png"/></a>
<a href="#" onclick="sheetInstance.controlFactory.addColumn(null, true); return false;" title="Insert Column Before Selected">
<img alt="Insert Column Before Selected" src="jquery.sheet/images/sheet_col_add.png"/></a>
<a href="#" onclick="sheetInstance.controlFactory.addColumn(null, null, ':last'); return false;" title="Add Column At End">
<img alt="Add Column At End" src="jquery.sheet/images/sheet_col_add.png"/></a>
<a href="#" onclick="sheetInstance.controlFactory.addColumnMulti(); return false;" title="Insert Multi-Columns">
<img alt="Add Multi-Columns" src="jquery.sheet/images/sheet_col_add_multi.png"/></a>
<a href="#" onclick="sheetInstance.deleteColumn(); return false;" title="Delete Column">
<img alt="Delete Column" src="jquery.sheet/images/sheet_col_delete.png"/></a>
<a href="#" onclick="sheetInstance.getTdRange(null, sheetInstance.obj.formula().val()); return false;" title="Get Cell Range">
<img alt="Get Cell Range" src="jquery.sheet/images/sheet_get_range.png"/></a>
<a href="#" onclick="sheetInstance.s.fnSave(); return false;" title="Save Sheets">
<img alt="Save Sheet" src="jquery.sheet/images/disk.png"/></a>
<a href="#" onclick="sheetInstance.deleteSheet(); return false;" title="Delete Current Sheet">
<img alt="Delete Current Sheet" src="jquery.sheet/images/table_delete.png"/></a>
<a href="#" onclick="sheetInstance.calc(sheetInstance.i); return false;" title="Refresh Calculations">
<img alt="Refresh Calculations" src="jquery.sheet/images/arrow_refresh.png"/></a>
<a href="#" onclick="sheetInstance.cellFind(); return false;" title="Find">
<img alt="Find" src="jquery.sheet/images/find.png"/></a>
<a href="#" onclick="sheetInstance.cellStyleToggle('styleBold'); return false;" title="Bold">
<img alt="Bold" src="jquery.sheet/images/text_bold.png"/></a>
<a href="#" onclick="sheetInstance.cellStyleToggle('styleItalics'); return false;" title="Italic">
<img alt="Italic" src="jquery.sheet/images/text_italic.png"/></a>
<a href="#" onclick="sheetInstance.cellStyleToggle('styleUnderline', 'styleLineThrough'); return false;" title="Underline">
<img alt="Underline" src="jquery.sheet/images/text_underline.png"/></a>
<a href="#" onclick="sheetInstance.cellStyleToggle('styleLineThrough', 'styleUnderline'); return false;" title="Strikethrough">
<img alt="Strikethrough" src="jquery.sheet/images/text_strikethrough.png"/></a>
<a href="#" onclick="sheetInstance.cellStyleToggle('styleLeft', 'styleCenter styleRight'); return false;" title="Align Left">
<img alt="Align Left" src="jquery.sheet/images/text_align_left.png"/></a>
<a href="#" onclick="sheetInstance.cellStyleToggle('styleCenter', 'styleLeft styleRight'); return false;" title="Align Center">
<img alt="Align Center" src="jquery.sheet/images/text_align_center.png"/></a>
<a href="#" onclick="sheetInstance.cellStyleToggle('styleRight', 'styleLeft styleCenter'); return false;" title="Align Right">
<img alt="Align Right" src="jquery.sheet/images/text_align_right.png"/></a>
<a href="#" onclick="sheetInstance.fillUpOrDown(); return false;" title="Fill Down">
<img alt="Fill Down" src="jquery.sheet/images/arrow_down.png"/></a>
<a href="#" onclick="sheetInstance.fillUpOrDown(true); return false;" title="Fill Up">
<img alt="Fill Up" src="jquery.sheet/images/arrow_up.png"/></a>
<span class="colorPickers">
<input title="Foreground color" class="colorPickerFont" style="background-image: url('jquery.sheet/images/palette.png') ! important; width: 16px; height: 16px;"/>
<input title="Background Color" class="colorPickerCell" style="background-image: url('jquery.sheet/images/palette_bg.png') ! important; width: 16px; height: 16px;"/>
</span>
<a href="#" onclick="sheetInstance.obj.formula().val('=HYPERLINK(\'' + prompt('Enter Web Address', 'http://www.visop-dev.com/') + '\')').keydown(); return false;" title="HyperLink">
<img alt="Web Link" src="jquery.sheet/images/page_link.png"/></a>
<a href="#" onclick="sheetInstance.toggleFullScreen(); $('#lockedMenu').toggle(); return false;" title="Toggle Full Screen">
<img alt="Web Link" src="jquery.sheet/images/arrow_out.png"/></a><!--<a href="#" onclick="insertAt('jSheetControls_formula', '~np~text~'+'/np~');return false;" title="Non-parsed"><img alt="Non-parsed" src="images/noparse.png"/></a>-->
</span>
</span>
<iframe name="theme" id="theme" width="100%" height="600" src="protal_gadgets/themecontent/gadget.html"/>
<div class="header">
<!-- Each aggregate of groups is a div wrapper -->
<div class="wrapper" id="wrapper_header">
<div class=" header-left">
<fieldset class="widget">
<legend class="group_title"></legend>
<div class="field" title="">
<label>search_bar</label>
<div class="input"><div >
<a class="ung_docs">
<input type="image" src="images/ung/ung-logo.gif" alt="logo" onclick="Document.stopDocumentEdition()"/>
</a>
<a id="loading_message" lang="en">Loading...</a>
<a id="document_title" name="document_title" onclick="editDocumentSettings()">Untitled</a>
<a id="document_state" name="document_state">...</a>
</div></div>
</div>
</fieldset>
</div>
<div class=" header-right">
<fieldset class="widget">
<legend class="group_title"></legend>
<div class="field" title="">
<label>document_action_box</label>
<div class="input"><div >
<a id="last_update">Updated ... by</a>
<a id="author">Unknown</a>
<button type="button" onclick="Document.saveCurrentDocument()">Save</button>
<div class="action_menu">
<ul id="change_state_list"><li>
<a id="change_state">
<span>Change state</span>
<img src="images/ung/arrow.png" alt=">"/>
</a>
<ul>
<li>
<a onclick="javascript:cancel_sharing()">
<h6>Cancel document publication</h6>
</a>
</li>
<li>
<a onclick="javascript:translate()">
<h6>Request translation</h6>
</a>
</li>
<li>
<a onclick="javascript:submit()">
<h6>Submit document for review</h6>
</a>
</li>
<li>
<a onclick="javascript:share()">
<h6>Share this document</h6>
</a>
</li>
</ul>
</li></ul>
</div>
</div></div>
</div>
</fieldset>
</div>
</div>
</div>
<div class="header">
<!-- Each aggregate of groups is a div wrapper -->
<div class="wrapper" id="wrapper_header">
<div class=" header-left">
<fieldset class="widget">
<legend class="group_title"></legend>
<div class="field" title="">
<label>search_bar</label>
<div class="input"><div >
<input type="image" src="images/ung/ung-logo.gif" alt="logo" onclick="Document.stopDocumentEdition()"/>
<a id="loading_message" lang="en">Loading...</a>
<a id="document_title" name="document_title" onclick="editDocumentSettings()">Untitled</a>
<a id="document_state" name="document_state">...</a>
</div></div>
</div>
</fieldset>
</div>
<div class=" header-right">
<fieldset class="widget">
<legend class="group_title"></legend>
<div class="field" title="">
<label>document_action_box</label>
<div class="input"><div >
<a id="last_update">Updated ... by</a>
<a id="author">Unknown</a>
<button type="button" onclick="Document.saveCurrentDocument()">Save</button>
<div class="action_menu">
<ul id="change_state_list"><li>
<a id="change_state">
<span>Change state</span>
<img src="images/ung/arrow.png" alt=">"/>
</a>
<ul>
<li>
<a onclick="javascript:cancel_sharing()">
<h6>Cancel document publication</h6>
</a>
</li>
<li>
<a onclick="javascript:translate()">
<h6>Request translation</h6>
</a>
</li>
<li>
<a onclick="javascript:submit()">
<h6>Submit document for review</h6>
</a>
</li>
<li>
<a onclick="javascript:share()">
<h6>Share this document</h6>
</a>
</li>
</ul>
</li></ul>
</div>
</div></div>
</div>
</fieldset>
</div>
</div>
</div>
<div class="container">
<div class="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="field" title="">
<label>navigation_box</label>
<div class="input"><div >
<a class="email" lang="en">Email</a>
<a class="document" onclick="Document.stopDocumentEdition()" lang="en">Documents</a>
<a class="calendar" lang="en">Calendar</a>
</div></div>
</div>
</fieldset>
</div>
<div class=" navigation-right">
<fieldset class="widget">
<legend class="group_title"></legend>
<div class="field" title="">
<label>your_language</label>
<div class="input"><div >
<div id="select_language">
<ul><li>
<span id="current_language">en</span>
<img src="images/ung/arrow_20C.png" alt=">"/>
<ul id="available_languages">
<li></li>
</ul>
</li></ul>
</div>
</div></div>
</div>
<div class="field" title="">
<label>Login Box</label>
<div class="input"><div >
<a id="right_message" lang="en">Not Implemented yet</a>
<div id="preference_dialog" title="UNG Preferences"></div>
<a id="userName">Unknown</a>
| <a id="settings" href="#" lang="en">Parametres</a>
| <a id="help" href="#" lang="en">Help</a>
| <a id="sign_out" href="index.html" onclick="signOut()">Sign out</a>
</div></div>
</div>
</fieldset>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="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="field" title="">
<label>navigation_box</label>
<div class="input"><div >
<a class="email" lang="en">Email</a>
<a class="document" onclick="Document.stopDocumentEdition()" lang="en">Documents</a>
<a class="calendar" href="ung/calendar.html" lang="en">Calendar</a>
</div></div>
</div>
</fieldset>
</div>
<div class=" navigation-right">
<fieldset class="widget">
<legend class="group_title"></legend>
<div class="field" title="">
<label>your_language</label>
<div class="input"><div >
<div id="select_language">
<ul><li>
<span id="current_language">en</span>
<img src="images/ung/arrow_20C.png" alt=">"/>
<ul id="available_languages">
<li></li>
</ul>
</li></ul>
</div>
</div></div>
</div>
<div class="field" title="">
<label>Login Box</label>
<div class="input"><div >
<a id="right_message" lang="en">Not Implemented yet</a>
<div id="preference_dialog" title="UNG Preferences"></div>
<a id="userName">Unknown</a>
| <a id="settings" href="#" lang="en">Parametres</a>
| <a id="help" href="#" lang="en">Help</a>
| <a id="sign_out" href="index.html" onclick="signOut()">Sign out</a>
</div></div>
</div>
</fieldset>
</div>
</div>
</div>
</div>
</div>
<div id="ungleftlist" gadget="portal_gadgets/ungleftlist/gadget.html"
gadget:property="{}"></div>
<div id="ungrightlist" gadget="portal_gadgets/ungrightlist/gadget.html"
gadget:property="{}"></div>
<div>
<iframe name="iframe1" width="100%" height="100%" frameborder="2" src="/portal_gadgets/ungcontent/gadget1.html" ></iframe>
</div>
<div class="header">
<!-- Each aggregate of groups is a div wrapper -->
<div class="wrapper" id="wrapper_header">
<div class=" header-left">
<fieldset class="widget">
<legend class="group_title"></legend>
<div class="field" title="">
<label> search_bar </label>
<div class="input"><div >
<a class="ung_docs">
<input type="image" src="images/ung/ung-logo.gif" alt="logo"/>
</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="button" value="Search Doc" name="WebSection_viewSearchResultList:method" />
</form>
</div></div>
</div>
</fieldset>
</div>
</div>
</div>
<div class="header">
<!-- Each aggregate of groups is a div wrapper -->
<div class="wrapper" id="wrapper_header">
<div class=" header-left">
<fieldset class="widget">
<legend class="group_title"></legend>
<div class="field" title="">
<label> search_bar </label>
<div class="input"><div >
<a class="ung_docs">
<input type="image" src="images/ung/ung-logo.gif" alt="logo" onclick="Document.stopDocumentEdition()"/>
</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="button" value="Search Doc" name="WebSection_viewSearchResultList:method" />
</form>
</div></div>
</div>
</fieldset>
</div>
</div>
</div>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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