if ($result) { $resultRow = mysql_fetch_array($result); if ($resultRow) { $curListId = $resultRow['nID']; } } // get the slotId - it has to be only one, otherwise this extension fails $query = "SELECT nSlotId FROM cf_slottouser WHERE nMailingListId = {$curListId}"; $result = mysql_query($query); if ($result) { $resultRow = mysql_fetch_array($result); if ($resultRow) { $curSlotId = $resultRow['nSlotId']; } } $AdditionalText = new Database_AdditionalText(); $additionalTexts = $AdditionalText->getByParams(); $additionalTextDefaultValue = $AdditionalText->getDefaultValue(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=<?php echo $DEFAULT_CHARSET; ?> "> <title></title> <link rel="stylesheet" href="../../pages/format.css" type="text/css"> <script src="../../lib/prototype/prototype.js" type="text/javascript"></script> <script language="JavaScript">
<?php $_REQUEST['language'] = strip_tags($_POST['language']); require_once '../config/config.inc.php'; require_once '../config/db_connect.inc.php'; require_once '../language_files/language.inc.php'; header("Content-Type: text/xml; charset={$DEFAULT_CHARSET}"); $additionalTextId = strip_tags($_REQUEST['additionalTextId']); $action = strip_tags($_REQUEST['action']); $AdditionalText = new Database_AdditionalText(); switch ($action) { case 'delete': $AdditionalText->getById($additionalTextId); $AdditionalText->delete(); break; case 'setDefault': $AdditionalText->setDefault($additionalTextId); break; case 'showValue': $AdditionalText->getById($additionalTextId); echo $AdditionalText->content; break; } if ($action != 'showValue') { ?> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="left" valign="top" width="16" style="border-bottom: 1px solid #ccc;"> # </td> <td align="left" valign="top" style="padding-right: 5px; border-bottom: 1px solid #ccc;">
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ require_once '../config/config.inc.php'; require_once '../config/db_connect.inc.php'; require_once '../language_files/language.inc.php'; require_once 'placeholder_tags_addtext.php'; $AdditionalText = new Database_AdditionalText(); if ($_REQUEST['write']) { if ($_REQUEST['additionalTextId']) { $AdditionalText->getById($_REQUEST['additionalTextId']); } $AdditionalText->title = $_REQUEST['title']; $AdditionalText->content = $_REQUEST['content']; $AdditionalText->save(); if ($_REQUEST['isDefault']) { $AdditionalText->setDefault($AdditionalText->id); } } else { $AdditionalText->getById($_REQUEST['additionalTextId']); $id = $AdditionalText->id; $title = $AdditionalText->title; $content = $AdditionalText->content;
break; case 'WHOLETIME': $arrCONF_AllCols[$nAllColsRunningNumber]['strTitle'] = 'COL_CIRCULATION_WHOLETIME'; $arrCONF_AllCols[$nAllColsRunningNumber]['strScreenTitle'] = $SHOW_CIRCULATION_WHOLETIME; if ($bActive) { $arrCirculation_Cols[] = 'COL_CIRCULATION_WHOLETIME'; } break; } if ($bActive) { $nColsRunningNumber++; } $arrCONF_AllCols[$nAllColsRunningNumber]['bActive'] = $bActive; $nAllColsRunningNumber++; } $AdditionalText = new Database_AdditionalText(); $additionalTexts = $AdditionalText->getByParams(); $nConnection = mysql_connect($DATABASE_HOST, $DATABASE_UID, $DATABASE_PWD); $fields = array(); if ($nConnection) { //--- get maximum count of users if (mysql_select_db($DATABASE_DB, $nConnection)) { //--- read the values of the user $strQuery = "SELECT * FROM cf_inputfield"; $nResult = mysql_query($strQuery, $nConnection); if ($nResult) { if (mysql_num_rows($nResult) > 0) { while ($arrRow = mysql_fetch_array($nResult)) { $fields[] = $arrRow; } }