<div id='kdb_container'> <div class='text_container'> <strong><?php echo $doc['title']; ?> </strong> <br/><br/> <?php $parser->proccess_file($doc['text']); echo $parser->print_text(); ?> </div> <div class='text_sumary'> <strong> <img id='kdb_sumary_0_img' align="absmiddle" border="0" src="/ossim/pixmaps/arrow_green.gif"> <a href='javascript:void(0);' onclick="toggle_arrow('kdb_sumary_0');"><?php echo _('Document Summary'); ?> </a> </strong> <br/>
ossim_valid($vuser, OSS_USER, OSS_NULLABLE, 'illegal:' . _("User")); ossim_valid($ventity, OSS_HEX, OSS_NULLABLE, 'illegal:' . _("Entity")); ossim_valid($title, OSS_TEXT, 'illegal:' . _("Tittle")); ossim_valid($keywords, OSS_TEXT, OSS_NULLABLE, 'illegal:' . _("Keywords")); if (ossim_error()) { $info_error[] = ossim_get_error(); ossim_clean_error(); $error = TRUE; } if ($doctext == "") { $info_error[] = _("Error in the 'text' field (missing required field)"); $error = TRUE; } if ($error == FALSE) { $parser = new KDB_Parser(); $parser->proccess_file($doctext); $info_error = $parser->is_valid(); if (count($info_error) > 0) { $error = TRUE; } } if ($error == FALSE) { $ctx = ""; if ($vuser != "") { $in_charge = $vuser; } elseif ($ventity != "") { $in_charge = $ventity; } else { $in_charge = 0; } $id_inserted = Repository::insert($conn, $title, $doctext, $keywords, $in_charge);
ossim_valid($vuser, OSS_USER, OSS_NULLABLE, 'illegal:' . _("User")); ossim_valid($ventity, OSS_HEX, OSS_NULLABLE, 'illegal:' . _("Entity")); ossim_valid($title, OSS_TEXT, 'illegal:' . _("Tittle")); ossim_valid($keywords, OSS_TEXT, OSS_NULLABLE, 'illegal:' . _("Keywords")); if (ossim_error()) { $info_error[] = ossim_get_error(); ossim_clean_error(); $error = true; } if ($doctext == "") { $info_error[] = _("Error in the 'text' field (missing required field)"); $error = true; } if ($error == false) { $parser = new KDB_Parser(); $parser->proccess_file($doctext, $id_document); $info_error = $parser->is_valid(); if (count($info_error) > 0) { $error = true; } } if ($error == false) { Repository::update($conn, $id_document, $title, $doctext, $keywords); } } $sintax = new KDB_Sintax(); $labels_condition = $sintax->_labels_condition; $labels_actions = $sintax->_labels_actions; $labels_operators = $sintax->_labels_operators; $labels_variables = $sintax->_labels_variables; $help_msgs = array();
<div id='container'> <div class="accordion"> <?php foreach ($repository_list as $doc) { ?> <h3><a href='#'><?php echo $doc->get_title(); ?> </a></h3> <div> <div class='text_container'> <?php $parser->proccess_file($doc->get_text(FALSE)); echo $parser->print_text(); ?> </div> <div class='text_sumary'> <strong><?php echo _('Document Summary'); ?> </strong> <br> <table style='margin-top:3px;width:90%;'> <tr> <td class='legend'> <?php echo _('Document') . ':';