Subversion Repositories ezclasspec

[/] [trunk/] [index.php] - Diff between revs 5 and 7

Show entire file | Ignore whitespace | Details | Blame | View Log

Rev 5 Rev 7
Line 62... Line 62...
?>
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<head>
        <title>eZ Publish Content Class spec</title>
        <title>eZ Publish Content Class spec</title>
 
        <link type="text/css" href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="all"/>
        <link type="text/css" href="css/main.css" rel="stylesheet" media="all"/>
        <link type="text/css" href="css/main.css" rel="stylesheet" media="all"/>
        <link type="text/css" href="css/nyroModal.css" rel="stylesheet" media="all"/>
        <link type="text/css" href="css/nyroModal.css" rel="stylesheet" media="all"/>
 
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
        <script type="text/javascript" src="js/jquery-1.4.3.min.js"></script>
 
        <script type="text/javascript" src="js/jquery.tablednd_0_5.js"></script>
 
        <script type="text/javascript" src="js/jquery.nyroModal-1.6.2.min.js"></script>
 
        <script type="text/javascript">
 
          $(document).ready(function() {
 
 
<div id="toc">
                // set focus on the new attribute of the class for which we most recenly added an attribute
<?php
                $('#attribute-<?php echo $class->getFocusClass(); ?>-new .attribute_name').focus();
 
 
echo $class->outputTOC($data);
                // initialise drag-and-drop functionality for the table
 
                $('table').tableDnD({
 
                onDrop: function(table, row) {
 
                    // alert($.tableDnD.serialize());
 
                    $('form').submit();
 
                },
 
                dragHandle: "dragHandle"
 
            });
 
 
?>
               
</div>
          });
<div id="topnav">
        </script>
<form action="" method="post">
</head>
 
<body>
 
 
<div id="buttons">
<form action="" method="post" class="form-inline">
        <input type="submit" name="Save" value="Save" />
 
        <input type="submit" name="CreateIdentifiers" value="Create identifiers" />
 
        <input type="submit" name="RemovedSelected" value="Remove selected" />
 
        <input type="submit" name="Clear" value="Clear all" />
 
        <input type="submit" name="Export" value="Export" />
 
        <a href="parts/import.php" class="nyroModal">Import</a>
 
</div>
 
 
 
<label><strong>Site name</strong></label>
<div class="container-fluid">
<input type="text" name="data[site]" tabindex="<?php echo $class->getTabIndex(); ?>" value="<?php if(isset($data['site'])) {echo $data['site'];} ?>" /></div>
  <div class="row-fluid">
 
        <div class="span9">
 
                <div class="well">
 
                        <input type="submit" class="btn btn-primary" name="Save" value="Save" />
 
                        <input type="submit" class="btn" name="CreateIdentifiers" value="Create identifiers" />
 
                        <input type="submit" class="btn" name="RemovedSelected" value="Remove selected" />
 
                        <input type="submit" class="btn" name="Export" value="Export" />
 
                        <a href="parts/import.php" class="nyroModal btn">Import</a>
 
                        <a href="view.php" class="btn">Print</a>
 
                        <input type="submit" class="btn btn-danger" name="Clear" value="Clear all" />
 
                </div>
 
        </div>
 
        <div class="span3">
 
                <div class="well">
 
                        <fieldset>
 
                                <input type="text" name="data[site]" placeholder="Site name" tabindex="<?php echo $class->getTabIndex(); ?>" value="<?php if(isset($data['site'])) {echo $data['site'];} ?>" />
 
                        </fieldset>
 
                </div>
 
        </div>
 
  </div>
 
  <div class="row-fluid">
 
    <div class="span9">
 
       
 
        <?php
 
 
<div id="content">
        // for each existing class
 
        if(isset($data['class_list']) and count($data['class_list']) > 0)
<?php
 
 
 
// for each existing class
 
if(isset($data['class_list']) and count($data['class_list']) > 0)
 
{
 
        foreach($data['class_list'] as $key => $data)
 
        {
        {
                echo $class->formOutputClass($key, $data);
                foreach($data['class_list'] as $key => $dataSingle)
 
                {
 
                        echo $class->formOutputClass($key, $dataSingle);
 
                }
        }
        }
}
 
 
 
// output a blank line to add new classes
        // output a blank line to add new classes
echo $class->formOutputClass();
        echo $class->formOutputClass();
 
 
?>
        ?>
 
        </div>
 
        <div class="span3">
 
      <div class="well sidebar-nav">
 
        <?php
 
                echo $class->outputTOC($data);
 
                ?>
 
      </div><!--/.well -->
 
    </div><!--/span-->
 
 </div>
 
</div>
 
 
</form>
</form>
 
</body>
<script type="text/javascript" src="js/jquery-1.4.3.min.js"></script>
</html>
<script type="text/javascript" src="js/jquery.tablednd_0_5.js"></script>
 
<script type="text/javascript" src="js/jquery.nyroModal-1.6.2.min.js"></script>
 
<script type="text/javascript">
 
  $(document).ready(function() {
 
 
 
        // set focus on the new attribute of the class for which we most recenly added an attribute
 
        $('#attribute-<?php echo $class->getFocusClass(); ?>-new .attribute_name').focus();
 
 
 
        // initialise drag-and-drop functionality for the table
 
        $('table').tableDnD({
 
        onDrop: function(table, row) {
 
            // alert($.tableDnD.serialize());
 
            $('form').submit();
 
        },
 
        dragHandle: "dragHandle"
 
    });
 
 
 
       
 
  });
 
</script>
 
</div>