<div style="width:10%;"> </div> </li>'; $cnt = 0; while ($row = mysql_fetch_row($result)) { $hl = $cnt % 2 == 1 ? ' hl' : ''; echo ' <li class="row ' . $hl . '"> <div class="txt" style="width:30%;">' . cOut($row[2] . ', ' . $row[1]) . '</div> <div class="txt" style="width:40%;">' . cOut($row[3]) . '</div> <div class="txt" style="width:20%;">' . ($row[4] != '' ? stampToDate($row[4], $hc_cfg[24] . ' ' . $hc_cfg[23]) : 'N/A') . '</div> <div class="tools" style="width:10%;"> <a href="' . AdminRoot . '/index.php?com=adminedit&aID=' . $row[0] . '"><img src="' . AdminRoot . '/img/icons/edit.png" width="16" height="16" alt="" /></a> <a href="javascript:;" onclick="doDelete(\'' . $row[0] . '\');return false;"><img src="' . AdminRoot . '/img/icons/delete.png" width="16" height="16" alt="" /></a> </div> </li>'; ++$cnt; } echo ' </ul> <script> //<!-- function doDelete(dID){ if(confirm("' . $hc_lang_admin['Valid07'] . '\\n\\n ' . $hc_lang_admin['Valid08'] . '\\n ' . $hc_lang_admin['Valid09'] . '")){ document.location.href = "' . AdminRoot . '/components/AdminEditAction.php?dID=" + dID + "&tkn=' . set_form_token(1) . '"; } } //--> </script>'; } else { echo '<p>' . $hc_lang_admin['NoAdmin'] . '</p>'; }
$twtrSignIn = cOut(mysql_result($result, 32, 0)); $fbSignIn = cOut(mysql_result($result, 33, 0)); $googSignIn = cOut(mysql_result($result, 34, 0)); $fbAppID = cOut(mysql_result($result, 35, 0)); $fbAppSec = cOut(mysql_result($result, 36, 0)); $fbConOpts = json_decode(cOut(mysql_result($result, 37, 0)), true); $fbActiveT = cOut(mysql_result($result, 38, 0)); $fbTokenU = cOut(mysql_result($result, 39, 0)); $fbExpires = cOut(mysql_result($result, 40, 0)); $fbActiveI = cOut(mysql_result($result, 41, 0)); $googID = cOut(mysql_result($result, 42, 0)); $googSec = cOut(mysql_result($result, 43, 0)); $fbConOptsOut = ''; echo ' <form name="frmSettings" id="frmSettings" method="post" action="' . AdminRoot . '/components/SettingsAPIAction.php" onsubmit="return validate();">'; set_form_token(); echo ' <fieldset> <legend>' . $hc_lang_settings['Maps'] . '</legend> <label for="mapLibrary">' . $hc_lang_settings['Library'] . '</label> <select name="mapLibrary" id="mapLibrary" onchange="togMapLibrary(this.options[this.selectedIndex].value);"> <option' . ($mapLibrary == 1 ? ' selected="selected"' : '') . ' value="1">' . $hc_lang_settings['Library1'] . '</option> <option' . ($mapLibrary == 2 ? ' selected="selected"' : '') . ' value="2">' . $hc_lang_settings['Library2'] . '</option> </select> <div id="library1" style="clear:both;' . ($mapLibrary != 1 ? ' display:none;' : '') . '"> <label for="googMapURL">' . $hc_lang_settings['GoogMapURL'] . '</label> <input' . ($mapLibrary != 1 ? ' disabled="disabled"' : '') . ' name="googMapURL" id="googMapURL" type="url" size="30" maxlength="100" required="required" value="' . $googMapURL . '" /> <span class="frm_ctrls"> <a class="tooltip" data-tip="' . $hc_lang_settings['Tip22'] . '" href="javascript:;" tabindex="-1"><img src="' . AdminRoot . '/img/icons/info.png" width="16" height="16" alt="" /></a> </span> <label for="googMapVer">' . $hc_lang_settings['GoogMapVer'] . '</label>
<ul class="data"> <div class="blbd">'; $cnt = 0; while ($row = mysql_fetch_row($result)) { $hl = $cnt % 2 == 1 ? ' hl' : ''; echo ' <li class="row ' . $hl . '"> <div class="txt" title="' . cOut($row[1]) . '" style="width:70%;">' . cOut($row[1]) . '</div> <div style="width:10%;">' . stampToDate($row[2], $hc_cfg[24]) . '</div> <div class="number" style="width:10%;">' . number_format(cOut($row[3]), 0, '', ',') . '</div> <div class="tools" style="width:10%;"> <a href="' . AdminRoot . '/index.php?com=eventedit&eID=' . $row[0] . '"><img src="' . AdminRoot . '/img/icons/edit.png" width="16" height="16" alt="" /></a> <a href="javascript:;" onclick="doDelete(\'' . $row[0] . '\');return false;"><img src="' . AdminRoot . '/img/icons/delete.png" width="16" height="16" alt="" /></a> </div> </li>'; ++$cnt; } echo ' </div> </ul> <script> //<!-- function doDelete(eID){ if(confirm("' . $hc_lang_manage['Valid01'] . "\\n\\n " . $hc_lang_manage['Valid02'] . "\\n " . $hc_lang_manage['Valid03'] . '")) window.location.href = "' . AdminRoot . '/components/EventBillboardAction.php?eID=" + eID + "&tkn=' . set_form_token(1) . '"; } //--> </script>'; } else { echo '<p>' . $hc_lang_manage['NoBillboard'] . '</p>'; }
header("HTTP/1.1 403 No Direct Access"); exit; } include HCLANG . '/admin/tools.php'; if (isset($_GET['msg'])) { switch ($_GET['msg']) { case "1": feedback(1, $hc_lang_tools['Feed02']); break; case "2": feedback(2, $hc_lang_tools['Feed01']); break; } } appInstructions(0, "Event_Import", $hc_lang_tools['TitleImport'], $hc_lang_tools['InstructImport']); $token = set_form_token(1); $hc_Side[] = array(AdminRoot . '/components/ToolImportAction.php?samp=1&tkn=' . $token, 'download_csv.png', $hc_lang_tools['LinkTemplate'], 0); echo ' <form name="frmEventImport" id="frmEventImport" method="post" action="' . AdminRoot . '/components/ToolImportAction.php" onsubmit="return validate();"> <input type="hidden" name="token" id="token" value="' . $token . '" /> <fieldset> <legend>' . $hc_lang_tools['ImportLabel'] . '</legend> <label for="impType">' . $hc_lang_tools['Import'] . '</label> <select name="impType" id="impType" onchange="toggleMe(document.getElementById(\'csv\'));"> <option value="0">' . $hc_lang_tools['Import0'] . '</option> <option value="1">' . $hc_lang_tools['Import1'] . '</option> </select> </fieldset> <div id="csv"> <fieldset> <legend>' . $hc_lang_tools['DataLabel'] . '</legend>
} echo ' <li class="row' . $hl . '"> <div class="txt" title="' . cOut($row[1]) . '" style="width:30%;">' . cOut($row[1]) . '</div> <div class="txt" title="' . cOut($row[2]) . '" style="width:40%;font-style:italic;">' . cOut($row[2]) . ' </div> <div style="width:15%;"> ' . $type . '</div> <div class="tools" style="width:12%;"> <a href="' . $link . $row[0] . '"><img src="' . AdminRoot . '/img/icons/edit.png" width="16" height="16" alt="" /></a> <a href="javascript:;" onclick="doDelete(\'' . $row[4] . '\');return false;"><img src="' . AdminRoot . '/img/icons/delete.png" width="16" height="16" alt="" /></a> </div> </li>'; ++$cnt; } echo ' </div> </ul> <script> //<!-- function doDelete(dID){ if(confirm("' . $hc_lang_reports['Valid10'] . '\\n\\n ' . $hc_lang_reports['Valid11'] . '\\n ' . $hc_lang_reports['Valid12'] . '")){ document.location.href = "' . AdminRoot . '/components/ReportDelete.php?dID=" + dID + "&tkn=' . set_form_token(1) . '"; } } //--> </script>'; } else { echo ' <p>' . $hc_lang_reports['NoFollow'] . '</p>'; }
if ($type == 0) { echo '<img src="' . AdminRoot . '/images/spacer.gif" width="16" height="1" alt="" />'; echo $row[4] == 1 ? '<a href="javascript:;" onclick="doPause(\'' . $row[0] . '\');return false;""><img src="' . AdminRoot . '/img/icons/pause.png" width="16" height="16" alt="" /></a>' : '<a href="' . AdminRoot . '/index.php?com=newssend&nID=' . $row[0] . '"><img src="' . AdminRoot . '/img/icons/play.png" width="16" height="16" alt="" /></a>'; } else { echo ($row[5] == 1 ? '<a href="' . CalRoot . '/newsletter/index.php?n=' . md5($row[0]) . '" target="_blank"><img src="' . AdminRoot . '/img/icons/email_open.png" width="16" height="16" alt="" /></a>' : '<img src="' . AdminRoot . '/images/spacer.gif" width="16" height="1" alt="" />') . ' <a href="' . AdminRoot . '/index.php?com=newsreport&rID=' . $row[0] . '"><img src="' . AdminRoot . '/img/icons/report.png" width="16" height="16" alt="" /></a>'; } echo ' <a href="javascript:;" onclick="doDelete(\'' . $row[0] . '\');return false;"><img src="' . AdminRoot . '/img/icons/email_delete.png" width="16" height="16" alt="" /></a> </div> </li>'; ++$cnt; } echo ' </ul> <script> //<!-- function doPause(nID){ if(confirm("' . $hc_lang_news['Valid35'] . '\\n\\n ' . $hc_lang_news['Valid36'] . '\\n ' . $hc_lang_news['Valid37'] . '")) document.location.href = "' . AdminRoot . '/components/NewsletterPause.php?n=" + nID + "&d=2&g=1"; } function doDelete(dID){ if(confirm("' . $hc_lang_news['Valid32'] . '\\n\\n ' . $hc_lang_news['Valid33'] . '\\n ' . $hc_lang_news['Valid34'] . '")) document.location.href = "' . AdminRoot . '/components/MailQueueAction.php?dID=" + dID + "&tID=' . $type . '&tkn=' . set_form_token(1) . '"; } //--> </script>'; } else { echo '<p>' . $hc_lang_news['NoNewsletter' . $type] . '</p>'; }