[Zope-CVS] CVS: Packages/Moztop/moztop/content/Content/SQLScript - newsqlscript.xul:1.1

Paul Everitt paul@zope.com
Mon, 10 Mar 2003 17:54:16 -0500


Update of /cvs-repository/Packages/Moztop/moztop/content/Content/SQLScript
In directory cvs.zope.org:/tmp/cvs-serv21883/Content/SQLScript

Added Files:
	newsqlscript.xul 
Log Message:
All commands for new content items are now plugged in and popup dialog boxes under Content directories

=== Added File Packages/Moztop/moztop/content/Content/SQLScript/newsqlscript.xul ===
<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>

<dialog id="newsqlscript" title="New SQL Script"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        buttons="accept,cancel"
        ondialogaccept="return doOK();"
        ondialogcancel="return doCancel();">

<script>
function doOK()
{
  var sitesmanager = window.arguments[0]; 
  var t = sitesmanager.titleprop;
  var title = document.getElementById("field_title").value;
  var description = document.getElementById("field_description").value;
  sitesmanager.PUT();
  return true;
}

function doCancel()
{
  return true;
}
</script>

<groupbox>
  <caption label="New SQL Script"/>
  <grid flex="1">
      <columns>
        <column/>
        <column flex="1"/>
      </columns>
      <rows>
        <row>
          <label control="field_title" value="Title"/>
          <textbox id="field_title" flex="1"/>
        </row>
        <row>
          <label control="field_description" value="Description"/>
          <textbox id="field_description" flex="1"/>
        </row>
      </rows>
  </grid>
</groupbox>

</dialog>