// Tries to determine if call-back functions and/or extra values shall be parsed
function doHandleExtraValues ($filterFunctions, $extraValues, $key, $entries, $userIdColumn, $search, $id = NULL) {
- // $search shall not be NULL
- assert(!is_null($search));
-
// Debug mode enabled?
if (isDebugModeEnabled()) {
// Debug message
// Search for whole array
foreach ($array as $idx => $dummy) {
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',value=' . $value . ',idx=' . $idx . ',parentIndex[' . gettype($parentIndex) . ']=' . $parentIndex);
- //* DEBUG: */ print 'idx=' . $idx . ',parentIndex[' . gettype($parentIndex) . ']=' . $parentIndex . ',key=' . $key . ',value=' . $value . ',array=<pre>'.print_r($array, TRUE).'</pre>';
+ /* DEBUG: */ print 'idx=' . $idx . ',parentIndex[' . gettype($parentIndex) . ']=' . $parentIndex . ',key=' . $key . ',value=' . $value . ',array=<pre>'.print_r($array, TRUE).'</pre>';
// Is dummy an array?
if ((is_array($dummy)) && ((is_null($parentIndex)) || ($parentIndex === $value))) {
// Then search again
</div>
<div class="admin_input" align="center">
- <legend for="url">{--ADMIN_ENTER_SURFBAR_URL--}</legend>
+ <label for="url">{--ADMIN_ENTER_SURFBAR_URL--}</label>
<input type="text" class="form_field" name="url" size="20" maxlength="255" value="http://" />
</div>
<div class="admin_input bottom" align="center">
- <legend for="limit">{--ADMIN_ENTER_SURFBAR_LIMIT--}</legend>
+ <label for="limit">{--ADMIN_ENTER_SURFBAR_LIMIT--}</label>
<input type="text" class="form_field" name="limit" size="5" maxlength="20" value="0" /><br />
<span class="notice">{--ADMIN_ENTER_SURFBAR_LIMIT_NOTICE--}</span>
</div>
<div class="admin_input" align="center">
- <legend for="waiting">{--ADMIN_SELECT_SURFBAR_WAITING--}</legend>
+ <label for="waiting">{--ADMIN_SELECT_SURFBAR_WAITING--}</label>
$content[waiting]
</div>
<div class="admin_input bottom" align="center">
- <legend for="reload">{--ADMIN_SELECT_SURFBAR_RELOAD--}</legend>
+ <label for="reload">{--ADMIN_SELECT_SURFBAR_RELOAD--}</label>
$content[reload]
</div>
<input type="hidden" name="id[$content[id]]" value="1" />
</td>
<td align="center" class="bottom right {%template,ColorSwitch%}">
- <legend for="subid[$content[id]]">{--SUBID_VALUE--}</legend>
+ <label for="subid[$content[id]]">{--SUBID_VALUE--}</label>
$content[subid]
</td>
<td align="center" class="bottom {%template,ColorSwitch%}">
</div>
<div class="bottom" style="padding-top:3px;padding-bottom:3px">
- <legend for="set_all">{--ADMIN_CONFIG_NETWORK_HANDLER_SET_ALL--}</legend>
+ <label for="set_all">{--ADMIN_CONFIG_NETWORK_HANDLER_SET_ALL--}</label>
{%template,NoYesSelectionBox=set_all%}
</div>
<div class="bottom" style="padding-top:3px;padding-bottom:3px">
- <legend for="network_max_reload_time">{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_MAX_RELOAD_TIME--} ({--TIME_UNIT--})</legend>
+ <label for="network_max_reload_time">{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_MAX_RELOAD_TIME--} ({--TIME_UNIT--})</label>
$content[network_max_reload_time] ({%pipe,translateTimeUnit=$content[network_type_reload_time_unit]%})
</div>
<div class="bottom" style="padding-top:3px;padding-bottom:3px">
- <legend for="network_min_waiting_time">{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_MIN_WAITING_TIME</legend>
+ <label for="network_min_waiting_time">{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_MIN_WAITING_TIME--}</label>
<input type="text" class="form_normal" name="network_min_waiting_time" size="5" maxlength="20" value="$content[network_min_waiting_time]" />
</div>
<div class="bottom" style="padding-top:3px;padding-bottom:3px">
- <legend for="network_min_remain_clicks">{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_MIN_REMAIN_CLICKS</legend>
+ <label for="network_min_remain_clicks">{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_MIN_REMAIN_CLICKS--}</label>
<input type="text" class="form_normal" name="network_min_remain_clicks" size="5" maxlength="20" value="$content[network_min_remain_clicks]" />
</div>
<div class="bottom" style="padding-top:3px;padding-bottom:3px">
- <legend for="network_min_payment">{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_MIN_PAYMENT</legend>
+ <label for="network_min_payment">{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_MIN_PAYMENT--}</label>
<input type="text" class="form_normal" name="network_min_payment" size="7" maxlength="20" value="$content[network_min_payment]" />
</div>
<div class="bottom" style="padding-top:3px;padding-bottom:3px">
- <legend for="network_allow_erotic">{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_ALLOW_EROTIC</legend>
+ <label for="network_allow_erotic">{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_ALLOW_EROTIC--}</label>
<input type="text" class="form_normal" name="network_allow_erotic" size="5" maxlength="20" value="$content[network_allow_erotic]" />
</div>
<strong>$content[forced_ads_added]</strong>
</td>
<td class="{%template,ColorSwitch%}">
- <legend for="forced_ads_ad_url[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_AD_URL--}</legend>
+ <label for="forced_ads_ad_url[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_AD_URL--}</label>
<input type="text" class="form_field" name="forced_ads_ad_url[$content[forced_ads_id]]" size="20" maxlength="255" value="$content[forced_ads_ad_url]" />
</td>
</tr>
<tr>
<td class="{%template,ColorSwitch%}">
- <legend for="forced_ads_alt_text[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_ALTERNATE_TEXT--}</legend>
+ <label for="forced_ads_alt_text[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_ALTERNATE_TEXT--}</label>
<input type="text" class="form_field" name="forced_ads_alt_text[$content[forced_ads_id]]" size="15" maxlength="255" value="$content[forced_ads_alt_text]" />
</td>
<td class="{%template,ColorSwitch%}">
- <legend for="forced_ads_click_url[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_CLICK_URL--}</legend>
+ <label for="forced_ads_click_url[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_CLICK_URL--}</label>
<input type="text" class="form_field" name="forced_ads_click_url[$content[forced_ads_id]]" size="30" maxlength="255" value="$content[forced_ads_click_url]" />
</td>
</tr>
<tr>
<td class="{%template,ColorSwitch%}">
- <legend for="forced_ads_width[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_WIDTH--}</legend>
+ <label for="forced_ads_width[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_WIDTH--}</label>
<input type="text" class="form_field" name="forced_ads_width[$content[forced_ads_id]]" size="4" maxlength="4" value="$content[forced_ads_width]" />
</td>
<td class="{%template,ColorSwitch%}">
- <legend for="forced_ads_height[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_HEIGHT--}</legend>
+ <label for="forced_ads_height[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_HEIGHT--}</label>
<input type="text" class="form_field" name="forced_ads_height[$content[forced_ads_id]]" size="4" maxlength="4" value="$content[forced_ads_height]" />
</td>
</tr>
<tr>
<td class="{%template,ColorSwitch%}">
- <legend for="">{--ADMIN_CHANGE_FORCED_ADS_USERID--}</legend>
+ <label for="">{--ADMIN_CHANGE_FORCED_ADS_USERID--}</label>
$content[forced_ads_userid]
</td>
<td class="{%template,ColorSwitch%}">
- <legend for="forced_ads_type[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_TYPE--}</legend>
+ <label for="forced_ads_type[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_TYPE--}</label>
<select name="forced_ads_type[$content[forced_ads_id]]" class="form_select" size="1">
{%pipe,generateForcedAdsTypeOptions=$content[forced_ads_type]%}
</select>
</tr>
<tr>
<td class="{%template,ColorSwitch%} bottom">
- <legend for="forced_ads_framebreaker[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_FRAMEBREAKER--}</legend>
+ <label for="forced_ads_framebreaker[$content[forced_ads_id]]">{--ADMIN_CHANGE_FORCED_ADS_FRAMEBREAKER--}</label>
<select name="forced_ads_framebreaker[$content[forced_ads_id]]" class="form_select" size="1">
{%pipe,generateYesNoOptions=$content[forced_ads_framebreaker]%}
</select>
<strong>$content[forced_campaign_created]</strong>
</td>
<td class="{%template,ColorSwitch%}">
- <legend for="forced_campaign_ordered_clicks[$content[forced_campaign_id]]">{--ADMIN_CHANGE_FORCED_CAMPAIGN_ORDERED_CLICKS--}</legend>
+ <label for="forced_campaign_ordered_clicks[$content[forced_campaign_id]]">{--ADMIN_CHANGE_FORCED_CAMPAIGN_ORDERED_CLICKS--}</label>
<input type="text" class="form_field" name="forced_campaign_ordered_clicks[$content[forced_campaign_id]]" size="5" maxlength="20" value="{%pipe,translateComma=$content[forced_campaign_ordered_clicks]%}" />
</td>
</tr>
+
<tr>
<td class="{%template,ColorSwitch%}">
- <legend for="forced_campaign_payment_api[$content[forced_campaign_id]]">{--ADMIN_CHANGE_FORCED_CAMPAIGN_PAYMENT_API--}</legend>
+ <label for="forced_campaign_payment_api[$content[forced_campaign_id]]">{--ADMIN_CHANGE_FORCED_CAMPAIGN_PAYMENT_API--}</label>
<input type="text" class="form_field" name="forced_campaign_payment_api[$content[forced_campaign_id]]" size="5" maxlength="20" value="{%pipe,translateComma=$content[forced_campaign_payment_api]%}" />
</td>
<td class="{%template,ColorSwitch%}">
- <legend for="">{--ADMIN_CHANGE_FORCED_CAMPAIGN_RELOAD_LOCK--}</legend>
+ <label for="">{--ADMIN_CHANGE_FORCED_CAMPAIGN_RELOAD_LOCK--}</label>
$content[forced_campaign_reload_lock]
</td>
</tr>
+
<tr>
<td class="{%template,ColorSwitch%}">
- <legend for="forced_campaign_minimum_stay[$content[forced_campaign_id]]">{--ADMIN_CHANGE_FORCED_CAMPAIGN_MINIMUM_STAY--}</legend>
+ <label for="forced_campaign_minimum_stay[$content[forced_campaign_id]]">{--ADMIN_CHANGE_FORCED_CAMPAIGN_MINIMUM_STAY--}</label>
<input type="text" class="form_field" name="forced_campaign_minimum_stay[$content[forced_campaign_id]]" size="5" maxlength="20" value="$content[forced_campaign_minimum_stay]" />
</td>
<td class="{%template,ColorSwitch%}">
- <legend for="">{--ADMIN_CHANGE_FORCED_CAMPAIGN_ADS_ID--}</legend>
+ <label for="">{--ADMIN_CHANGE_FORCED_CAMPAIGN_ADS_ID--}</label>
{%template,ForcedAdSelectionBox=$content[forced_ads_id]%}
</td>
</tr>
+
<tr>
<td class="{%template,ColorSwitch%} bottom">
- <legend for="forced_campaign_userid">{--ADMIN_CHANGE_FORCED_CAMPAIGN_USERID--}</legend>
+ <label for="forced_campaign_userid">{--ADMIN_CHANGE_FORCED_CAMPAIGN_USERID--}</label>
$content[forced_campaign_userid]
<!--<input type="hidden" name="forced_campaign_userid_raw[$content[forced_campaign_id]]" value="$content[forced_campaign_userid_raw]" />//-->
</td>
<td class="{%template,ColorSwitch%} bottom">
- <legend for="">{--ADMIN_CHANGE_FORCED_CAMPAIGN_COSTS_ID--}</legend>
+ <label for="">{--ADMIN_CHANGE_FORCED_CAMPAIGN_COSTS_ID--}</label>
{%template,ForcedCostsSelectionBox=$content[forced_costs_id]%}
</td>
</tr>
<tr>
<td class="{%template,ColorSwitch%}">
- <legend for="forced_costs_price_click[$content[forced_costs_id]]">{--ADMIN_CHANGE_FORCED_COSTS_PRICE_CLICK--}</legend>
+ <label for="forced_costs_price_click[$content[forced_costs_id]]">{--ADMIN_CHANGE_FORCED_COSTS_PRICE_CLICK--}</label>
<input type="hidden" name="forced_costs_id[$content[forced_costs_id]]" value="1" />
<input type="text" class="form_field" name="forced_costs_price_click[$content[forced_costs_id]]" size="10" maxlength="20" value="{%pipe,translateComma=$content[forced_costs_price_click]%}" /> ({?POINTS?})
</td>
<td class="{%template,ColorSwitch%}">
- <legend for="forced_costs_payment_click[$content[forced_costs_id]]">{--ADMIN_CHANGE_FORCED_COSTS_PAYMENT_CLICK--}</legend>
+ <label for="forced_costs_payment_click[$content[forced_costs_id]]">{--ADMIN_CHANGE_FORCED_COSTS_PAYMENT_CLICK--}</label>
<input type="text" class="form_field" name="forced_costs_payment_click[$content[forced_costs_id]]" size="10" maxlength="20" value="{%pipe,translateComma=$content[forced_costs_payment_click]%}" /> ({?POINTS?})
</td>
</tr>
+
<tr>
<td class="{%template,ColorSwitch%} bottom">
- <legend for="forced_costs_visibility[$content[forced_costs_id]]">{--ADMIN_CHANGE_FORCED_COSTS_VISIBILITY--}</legend>
+ <label for="forced_costs_visibility[$content[forced_costs_id]]">{--ADMIN_CHANGE_FORCED_COSTS_VISIBILITY--}</label>
<select name="forced_costs_visibility[$content[forced_costs_id]]" class="form_select" size="1">
{%pipe,generateForcedCostsVisibilityOptions=$content[forced_costs_visibility]%}
</select>
<div class="tiny">({%pipe,translatePointsSubject=$content[subject]%})</div>
</td>
<td class="{%template,ColorSwitch%}">
- <legend for="column_name">{--ADMIN_POINTS_ACCOUNT_COLUMN_NAME</legend>
+ <label for="column_name">{--ADMIN_POINTS_ACCOUNT_COLUMN_NAME--}</label>
<strong>{%pipe,translatePointsAccountType=$content[column_name]%}</strong>
</td>
</tr>
<tr>
<td class="{%template,ColorSwitch%}">
- <legend for="locked_mode[$content[id]]">{--ADMIN_CHANGE_POINTS_LOCKED_MODE</legend>
+ <label for="locked_mode[$content[id]]">{--ADMIN_CHANGE_POINTS_LOCKED_MODE--}</label>
<select name="locked_mode[$content[id]]" class="form_select" size="1">
{%pipe,generatePointsLockedModeOptions=$content[locked_mode]%}
</select>
</td>
<td class="{%template,ColorSwitch%}">
- <legend for="payment_method[$content[id]]">{--ADMIN_CHANGE_POINTS_PAYMENT_METHOD</legend>
+ <label for="payment_method[$content[id]]">{--ADMIN_CHANGE_POINTS_PAYMENT_METHOD--}</label>
<select name="payment_method[$content[id]]" class="form_select" size="1">
{%pipe,generatePointsPaymentMethodOptions=$content[payment_method]%}
</select>
<tr>
<td class="bottom {%template,ColorSwitch%}">
- <legend for="notify_recipient[$content[id]]">{--ADMIN_CHANGE_POINTS_NOTIFY_RECIPIENT</legend>
+ <label for="notify_recipient[$content[id]]">{--ADMIN_CHANGE_POINTS_NOTIFY_RECIPIENT--}</label>
<select name="notify_recipient[$content[id]]" class="form_select" size="1">
{%pipe,generatePointsNotifyRecipientOptions=$content[notify_recipient]%}
</select>
</td>
<td class="bottom {%template,ColorSwitch%}">
- <legend for="account_provider">{--ADMIN_POINTS_ACCOUNT_PROVIDER</legend>
+ <label for="account_provider">{--ADMIN_POINTS_ACCOUNT_PROVIDER--}</label>
<strong>{%pipe,translatePointsAccountProvider=$content[account_provider]%}</strong>
</td>
</tr>
<strong>$content[actions_id]</strong>
</td>
<td align="center" class="{%template,ColorSwitch%}">
- <legend for="">{--ADMIN_CHANGE_SURFBAR_ACTIONS_STATUS--}</legend>
+ <label for="">{--ADMIN_CHANGE_SURFBAR_ACTIONS_STATUS--}</label>
{%template,SurfbarActionsStatusSelectionBox=$content[actions_id]%}
</td>
</tr>
<tr>
<td align="center" class="bottom {%template,ColorSwitch%}">
- <legend for="">{--ADMIN_CHANGE_SURFBAR_ACTIONS_ACTION--}</legend>
+ <label for="">{--ADMIN_CHANGE_SURFBAR_ACTIONS_ACTION--}</label>
{%template,SurfbarActionsActionSelectionBox=$content[actions_id]%}
</td>
<td align="center" class="bottom {%template,ColorSwitch%}">
- <legend for="">{--ADMIN_CHANGE_SURFBAR_ACTIONS_NEW_STATUS--}</legend>
+ <label for="">{--ADMIN_CHANGE_SURFBAR_ACTIONS_NEW_STATUS--}</label>
{%template,SurfbarActionsNewStatusSelectionBox=$content[actions_id]%}
</td>
</tr>
<tr>
<td align="center" class="bottom right {%template,ColorSwitch%}">
- <legend for="url_userid">{--_USERID--}</legend>
+ <label for="url_userid">{--_USERID--}</label>
<input type="hidden" name="url_id[$content[url_id]]" value="1" />
<input type="hidden" name="url_userid[$content[url_id]]" value="{%pipe,convertZeroToNull=$content[url_userid_raw]%}" />
$content[url_userid]
</td>
<td align="center" class="bottom right {%template,ColorSwitch%}">
- <legend for="url">{--ADMIN_TEST_URL--}</legend>
+ <label for="url">{--ADMIN_TEST_URL--}</label>
<input type="text" class="form_field" name="url[$content[url_id]]" size="20" maxlength="255" value="$content[url]" />
</td>
</tr>
<tr>
<td align="center" class="bottom right {%template,ColorSwitch%}">
- <legend for="url_fixed_reload">{--ADMIN_CHANGE_SURFBAR_FIXED_RELOAD--}</legend>
+ <label for="url_fixed_reload">{--ADMIN_CHANGE_SURFBAR_FIXED_RELOAD--}</label>
$content[url_fixed_reload]
</td>
<td align="center" class="bottom right {%template,ColorSwitch%}">
- <legend for="url_fixed_waiting">{--ADMIN_CHANGE_SURFBAR_FIXED_RELOAD--}</legend>
+ <label for="url_fixed_waiting">{--ADMIN_CHANGE_SURFBAR_FIXED_RELOAD--}</label>
$content[url_fixed_waiting]
</td>
</tr>
<input type="hidden" name="id[$content[id]]" value="1" />
</td>
<td align="center" class="bottom right {%template,ColorSwitch%}">
- <legend for="subid[$content[id]]">{--ADMIN_CHANGE_USER_SUBID--}</legend>
+ <label for="subid[$content[id]]">{--ADMIN_CHANGE_USER_SUBID--}</label>
<input type="text" class="form_field" name="subid[$content[id]]" size="20" maxlength="255" value="$content[subid]" />
</td>
<td align="center" class="bottom {%template,ColorSwitch%}">