} else { ?> jQuery('[name="<?php echo $key; ?> "]').attr("checked", false); <?php } } else { if (!is_array($value)) { ?> jQuery('[name="<?php echo $key; ?> "]').val("<?php echo sanitizeX($value); ?> "); <?php } } } } } ?> </script> <?php } ?> </form>
?> </a></td> </tr> <tr> <td class="logo"> <a href="<?php echo site_url(); ?> company/<?php echo $company['slug']; ?> " title="<?php echo sanitizeX($company['name']); ?> " alt="<?php echo sanitizeX($company['name']); ?> "> <?php if (trim($company['logo'])) { ?> <img src='<?php echo site_url(); ?> media/image.php?p=<?php echo $company['logo']; ?> &mx=160&square=1' /> <?php } else { ?>
<?php $this->load->view('blogs_rss/submenus'); ?> <center> <div class='pad10' ><form action="<?php echo site_url(); ?> blogs_rss/all/" class='inline' >Search: <input type='text' id='search' value="<?php echo sanitizeX($search); ?> " name='search' /><input type='button' class='button normal' value='search' onclick='searchCompany()'><input type='button' class='button normal' onclick='self.location="<?php echo site_url(); ?> blogs_rss/all/?search="+jQuery("#search").val()+"&shuffle=1"' value='Shuffle'></form><div class='hint'>Name, Description, Tags</div> </div> </center>
if ($cnt > 1) { echo "records"; } else { echo "record"; } ?> in the database. Go to Page: <?php if ($search) { ?> <select onchange='self.location="?search=<?php echo sanitizeX($search); ?> &filter=<?php echo sanitizeX($filter); ?> &start="+this.value'> <?php } else { ?> <select onchange='self.location="?start="+this.value'> <?php } for ($i = 0; $i < $pages; $i++) { if ($i * $limit == $start) { ?> <option value="<?php echo $i * $limit; ?> " selected="selected"><?php
if (trim($_GET['ref'])) { ?> <tr> <td class='thankyou' colspan="2"> Please Login to Continue </td> </tr> <?php } } ?> <tr> <td class='label'>E-mail</td> <td class='value'> <input type='text' name='email' class='required' value="<?php echo sanitizeX($_GET['email']); ?> "> </td> </tr> <tr> <td class='label'>Password</td> <td class='value'><input type='password' name='password' class='required' id='upass'></td> </tr> <tr> <td class='submit' colspan="2" > <table style='margin:auto'> <tr> <td style="vertical-align:middle; text-align:center" colspan="2"> <img id='loginbutton' src='<?php echo site_url();
public function ajax_add_investment_org_shortcut() { if (!$_SESSION['user']) { return false; } if (trim($_POST['name'])) { //check if company already exists $sql = "select `id` from `investment_orgs` where `name`=" . $this->db->escape(trim($_POST['name'])); $q = $this->db->query($sql); $investment_org = $q->result_array(); } $err = 0; if (!trim($_POST['name'])) { $err = 1; ?> alertX("<div class='red'>Please input a Investment Organization Name.</div>"); <?php } else { if ($investment_org[0]['id']) { $err = 1; ?> alertX("<div class='red'>Investment Organization already exists in the database.</div>"); <?php } } if (!$err) { $sql = "insert into `investment_orgs` set `name`=" . $this->db->escape(trim($_POST['name'])); $sql .= ", country='Singapore', active=1, `dateadded`=NOW(), `dateupdated`=NOW()"; $q = $this->db->query($sql); $id = $this->db->insert_id(); $this->slugify($id); ?> label = "<?php echo sanitizeX(trim($_POST['name'])); ?> "; value = "<?php echo sanitizeX($id); ?> "; investmentOrgPreAdd(label, value); jQuery("#investment_org_add_loader").html(""); jQuery("#investment_org_search").attr("disabled", false); jQuery("#investment_org_search").val(""); <?php $sql = "insert into `logs` set \n\t\t\t\t`action` = 'added',\n\t\t\t\t`table` = 'investment_orgs',\n\t\t\t\t`ipc_id` = " . $this->db->escape($id) . ",\n\t\t\t\t`name` = " . $this->db->escape(trim($_POST['name'])) . ",\n\t\t\t\t`user_id` = " . $this->db->escape(trim($_SESSION['user']['id'])) . ",\n\t\t\t\t`dateadded_ts` = " . time() . ",\n\t\t\t\t`dateadded` = NOW()\n\t\t\t"; $this->db->query($sql); } else { ?> jQuery("#investment_org_add_loader").html(""); jQuery("#investment_org_search").attr("disabled", false); jQuery("#investment_org_search").val(""); <?php } }
?> <select onchange='self.location="?type=<?php echo sanitizeX($type); ?> &search=<?php echo sanitizeX($search); ?> &filter=<?php echo sanitizeX($filter); ?> &start="+this.value'> <?php } else { ?> <select onchange='self.location="?type=<?php echo sanitizeX($type); ?> &start="+this.value'> <?php } for ($i = 0; $i < $pages; $i++) { if ($i * $limit == $start) { ?> <option value="<?php echo $i * $limit; ?> " selected="selected"><?php echo $i + 1; ?> </option><?php } else {
<td class='company_left'> <table cellpadding="0" cellspacing="0" class="p100"> <tr> <td class='logo'> <div> <a href="<?php echo site_url(); ?> investment_org/<?php echo $investment_org['slug']; ?> " title="<?php echo sanitizeX($investment_org['name']); ?> " alt="<?php echo sanitizeX($investment_org['name']); ?> "> <?php if (trim($investment_org['logo'])) { ?> <img src='<?php echo site_url(); ?> media/image.php?p=<?php echo $investment_org['logo']; ?> &mx=220&square=1' /> <?php } else { $logo = urlencode(site_url() . "media/startuplist/noimage.jpg");
<?php echo "<a href='" . site_url() . "company/" . $companies[0]['slug'] . "'>" . trim($companies[0]['company_name']) . "</a>"; ?> </td> </tr> <?php } if (trim($companies[0]['co_website'])) { ?> <tr> <td class='label'> Co. Website </td> <td class='value'> <a href="<?php echo sanitizeX(trim($companies[0]['co_website'])); ?> "><?php echo trim($companies[0]['co_website']); ?> </a> </td> </tr> <?php } if (trim($person['email_address']) && 0) { ?> <tr> <td class='label'> Email </td>
} } if (!$_GET['missingemail']) { ?> <tr> <td class='pad5'>Twitter Handle:</td> <td class='pad5'><input type="text" name="twitter" size="40" value="<?php echo sanitizeX($user['twitter']); ?> "><div class='hint'>E.g. @twitter</div></td> </tr> <tr> <td class='pad5'>Homepage URL:</td> <td class='pad5'><input type="text" name="homepage" size="40" value="<?php echo sanitizeX($user['homepage']); ?> "><div class='hint'>E.g. http://www.e27.sg</div></td> </tr> <?php } ?> <tr> <td class='center' colspan="2" style='padding-top:15px;' > <input type='button' class='normal' value='Save' onclick='saveaccount()' id='savebuttonx' /> </td> </tr> </table> </td> </tr> </table>
public function ajax_add_person_shortcut() { if (!$_SESSION['user']) { return false; } $err = 0; if (!trim($_POST['name'])) { $err = 1; ?> alertX("<div class='red'>Please input a Name.</div>"); <?php } if (!$err) { $sql = "insert into `people` set `name`=" . $this->db->escape(trim($_POST['name'])); $sql .= ", active=1, `dateadded`=NOW(), `dateupdated`=NOW()"; $q = $this->db->query($sql); $id = $this->db->insert_id(); $this->slugify($id); ?> label = "<?php echo sanitizeX(trim($_POST['name'])); ?> "; value = "<?php echo sanitizeX($id); ?> " peoplePreAdd(label, value); jQuery("#person_add_loader").html(""); jQuery("#people_search").attr("disabled", false); jQuery("#people_search").val("") <?php $sql = "insert into `logs` set \n\t\t\t\t`action` = 'added',\n\t\t\t\t`table` = 'people',\n\t\t\t\t`ipc_id` = " . $this->db->escape($id) . ",\n\t\t\t\t`name` = " . $this->db->escape(trim($_POST['name'])) . ",\n\t\t\t\t`user_id` = " . $this->db->escape(trim($_SESSION['user']['id'])) . ",\n\t\t\t\t`dateadded_ts` = " . time() . ",\n\t\t\t\t`dateadded` = NOW()\n\t\t\t"; $this->db->query($sql); } else { ?> jQuery("#person_add_loader").html(""); jQuery("#people_search").attr("disabled", false); jQuery("#people_search").val(""); <?php } }