CXM_dojo.anubis 2.42 KB
/*
 * Created by PyramIDE.
 * User: Steve Marechal
 * Date: 11/06/2008
 * Time: 09:54
 * 
 */

read calexium_lib/web/CXM_making_a_web_site.anubis
read tools/basis.anubis        // required for 'make_directory'
read locale/L3LanguageInfo.anubis

read mailfountain_constants.anubis
read mailfountain_types.anubis
read calexium_lib/web/CXM_common.anubis
read calexium_lib/web/CXM_making_a_web_site.anubis
read calexium_lib/web/CXM_multihost_http_server.anubis
read common/language_management.anubis

read tools/mf_loggers.anubis
read calexium_lib/net_services_protocols/logger_service.anubis
read system/logger.anubis

public type Dojo_Grid_Data :
  grid_data(String).

public define HTML_Off_Form
  dojo_dialog
  	(
  	  String name,
  	  String id,
  	  String execute,
  	)
	=
	literal("
<button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('"+id+"').show()\">"+name+"</button>

<div dojoType=\"dijit.Dialog\" id=\""+id+"\" title=\""+name+"\"
		execute=\""+execute+"\">
	<table>
		<tr>

			<td><input dojoType=dijit.form.TextBox type=\"text\" name=\"name\" id=\"name_"+id+"\"></td>
		</tr>
		
		<tr>
			<td colspan=\"2\" align=\"center\">
				<button dojoType=dijit.form.Button type=\"submit\">OK</button></td>
		</tr>
	</table>
</div></br>")

.

public define HTML_Off_Form
  dojo_grid
    (
      String id,
      String colum1,
      String colum2,
      String colum3,
      String colum4,
      Bool   can_edit
   )
  =
  literal("<script>
   	dojo.addOnLoad(function(){
  	  init_dojo_grid(\""+colum1+"\",\""+colum2+"\", \""+colum3+"\", \""+colum4+"\", "+ (if can_edit then "1" else "0")+");
   	  }
 	  );
  </script>
<div id=\"gridContainer\"></div>")
.


public define HTML_Off_Form
  dojo_message_box
  	(
  	  String name1,
  	  String name2,
  	)
	=
	literal("</br>

	<div>
		<div class=\"message_box \">
			<div id=\"node3\" class=\"box nopad hidden\">"+name1+"</div>
			<div id=\"node4\" class=\"box two nopad\">"+name2+"</div>
		</div>
	
	</div></br>")
.



public define HTML_Off_Form
  dojo_tooltip
  (
    String title,
    String keyword,
  ) =
  actioner(same,same, link([id("dojo_tip_" + keyword),class("dojoToolTip")],title, success(title)), "show_address_mailing", [("address_mailing", keyword)], []).
  //actioner(same, same, push_button([id("dojo_tip_" + keyword), class("in"), event(onclick,"new_search(this)")], keyword), "", [], []).