Changeset 99a13aa99cd589e1d28abdb0ac905497400e6d81 for ui
- Timestamp:
- 12/15/11 23:57:45 (6 years ago)
- git-parent:
- Files:
-
- ui/web/htdocs/template_graph.php (modified) (1 diff)
- ui/web/lib/Reconnoiter_DB.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ui/web/htdocs/template_graph.php
rf561a33 r99a13aa 48 48 $graph_json = stripslashes($graph_json); 49 49 $graph_json = json_decode($graph_json, true); 50 $graph_json['title'] = $graph_json['title'].$graph_num;51 50 $graph_json['genesis'] = $genesis; 51 52 // Check to see if this title exists 53 $titlerow = $db->getGraphByTitle($title); 54 // if it does, append $graph_num to it 55 if ($titlerow['graphid']) { 56 $graph_json['title'] = $graph_json['title'].$graph_num; 57 } 52 58 53 59 $grow = $db->getGraphByGenesis($genesis); ui/web/lib/Reconnoiter_DB.php
r263fbce r99a13aa 500 500 return $row; 501 501 } 502 function getGraphByTitle($title) { 503 $sth = $this->db->prepare("select * 504 from prism.saved_graphs 505 where title=?"); 506 $sth->execute(array($title)); 507 $row = $sth->fetch(); 508 return $row; 509 } 502 510 function deleteWorksheetGraph($ws_id, $graphid) { 503 511 $sth = $this->db->prepare("delete from prism.saved_worksheets_dep