public function create() { $this->data['js'][] = 'http://www.rbg.vic.gov.au/dbpages/lib/ckeditor/ckeditor.js'; $this->data['js'][] = base_url() . autoVersion('js/jquery.keybase.editproject.js'); if (isset($this->session->userdata['id'])) { if ($this->input->post('submit')) { $projectid = $this->projectservice->createProject($this->input->post()); redirect('projects/show/' . $projectid); } if ($this->input->post('cancel')) { redirect('projects'); } $this->data['cbox'] = FALSE; $this->load->view('projects/edit', $this->data); } else { redirect('projects'); } }
"></script> <?php if (isset($this->session->userdata['name'])) { ?> <script src="<?php echo base_url(); ?> third_party/contextMenu/jquery.contextMenu.js"></script> <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?> css/jquery.contextMenu.css" /> <script src="<?php echo base_url(); echo autoVersion('js/jquery.vicflora.edit-taxon.js'); ?> "></script> <script src="<?php echo base_url(); ?> third_party/ckeditor_4.4.0/ckeditor.js"></script> <script src="<?php echo base_url(); ?> third_party/ckeditor_4.4.0/adapters/jquery.js"></script> <?php } ?> <?php
echo autoVersion('js/colorbox/jquery.keybase.colorbox.js'); ?> "></script> <script type="text/javascript" src="<?php echo base_url(); echo autoVersion('js/jquery.keybase.key.js'); ?> "></script> <script type="text/javascript" src="<?php echo base_url(); echo autoVersion('js/jquery.keybase.project.js'); ?> "></script> <script type="text/javascript" src="<?php echo base_url(); echo autoVersion('js/jquery.keybase.js'); ?> "></script> <script type="text/javascript" src="<?php echo base_url(); echo autoversion('js/ckeditor_customconfig.js'); ?> "></script> <?php if (isset($js)) { ?> <?php foreach ($js as $file) { ?> <script type="text/javascript" src="<?php echo $file;