?>
        <input name="assign" type="submit" id="assign" value="<?php 
            _e('Go');
            ?>
" />
        </td>
        <td>
          <input name="visibility" type="submit" id="visibility" value="<?php 
            _e('Toggle Visibility');
            ?>
" />
        </td>
        <td>
          <?php 
            _e('Move to category:');
            category_dropdown('category');
            ?>
 <input name="move" type="submit" id="move" value="<?php 
            _e('Go');
            ?>
" />
        </td>
        <td align="right">
          <a href="#" onclick="checkAll(document.getElementById('links')); return false; "><?php 
            _e('Toggle Checkboxes');
            ?>
</a>
        </td>
    </tr>
</table>
Exemple #2
0
&auto_importer&add_rss" method="post">
		    <p style="float:left;width:150px;">
		      <label for="page-url"><?php 
i18n(BLOGFILE . '/ADD_NEW_FEED');
?>
</label>
			  <input class="text" type="text" name="post-rss" value="" style="padding-bottom:5px;" />
		    </p>
		    <p style="float:left;width:100px;margin-left:20px;">
		    	<label for="page-url"><?php 
i18n(BLOGFILE . '/BLOG_CATEGORY');
?>
</label>
				<select class="text" name="post-category">	
					<?php 
category_dropdown();
?>
				</select>
		    </p>
		    <p style="float:left;width:200px;margin-left:20px;margin-top:8px;">
		    <span>
		      <input class="submit" type="submit" name="rss_edit" value="<?php 
i18n(BLOGFILE . '/ADD_FEED');
?>
" style="width:auto;" />
		    </span>
		    &nbsp;&nbsp;<?php 
i18n(BLOGFILE . '/OR');
?>
&nbsp;&nbsp;
		    <a href="load.php?id=<?php 
    $results = $wpdb->get_results("SELECT ID, user_login FROM $wpdb->users WHERE user_level > 0 ORDER BY ID");
    echo "          <select name=\"newowner\" size=\"1\">\n";
    foreach ($results as $row) {
      echo "            <option value=\"".$row->ID."\"";
      echo ">".$row->user_login;
      echo "</option>\n";
    }
    echo "          </select>\n";
?>
        <input name="assign" type="submit" id="assign" value="<?php _e('Go') ?>" />
        </td>
        <td>
          <input name="visibility" type="submit" id="visibility" value="<?php _e('Toggle Visibility') ?>" />
        </td>
        <td>
          <?php _e('Move to category:'); category_dropdown('category'); ?> <input name="move" type="submit" id="move" value="<?php _e('Go') ?>" />
        </td>
        <td align="right">
          <a href="#" onclick="checkAll(document.getElementById('links')); return false; "><?php _e('Toggle Checkboxes') ?></a>
        </td>
    </tr>
</table>

<?php
  } // end if !popup
?>
</div>
</form>


<?php
Exemple #4
0
    }
}
// END Functions
if ($action == 'modify' || $mode == 'submit' || $submit) {
    //$country	= request_var('meeting_country', '');
    //$country_id	= request_var('meeting_country_id', '');
    $region = request_var('meeting_region', '');
    //$region_del		= request_var('region_del', '');
    //$town		= utf8_normalize_nfc(request_var('meeting_town', '', true));
    //$town_id 	= request_var('meeting_town_id', '');
    $redirect_url = append_sid("meeting.{$phpEx}", 'region_filter=' . $region);
    redirect($redirect_url);
    //meta_refresh(0, $redirect_url);
} else {
    // MAIN WORK
    get_categories();
    category_dropdown($data, $own_country);
    get_region_by_category($own_country);
    region_dropdown($data, $own_region);
    // Send the default strings to the template
    if ($curr_user == $user->data['user_id']) {
        $template->assign_vars(array('L_MEETING_SIGNON' => $user->lang['MEETING_SUBSCRIBE']));
    } else {
        $template->assign_vars(array('L_MEETING_SIGNON' => sprintf($user->lang['MEETING_SUBSCRIBE_user'], $user_name)));
    }
    $template->assign_vars(array('MEETING_COUNTRY_COD' => $own_country, 'MEETING_REGION' => $own_region, 'S_ACTION' => append_sid("meeting_region.{$phpEx}"), 'USER_NAME' => $curr_user_name));
    /**  template **/
    page_header($page_title);
    $template->set_filenames(array('body' => 'meeting_region.html'));
    page_footer();
}
        <table class="editform" width="100%" cellspacing="2" cellpadding="5">
         <tr>
           <th width="33%" scope="row"><?php _e('URI:') ?></th>
           <td width="67%"><input type="text" name="linkurl" value="<?php echo wp_specialchars($_GET['linkurl'], 1); ?>" style="width: 95%;" /></td>
         </tr>
         <tr>
           <th scope="row"><?php _e('Link Name:') ?></th>
           <td><input type="text" name="name" value="<?php echo wp_specialchars( urldecode($_GET['name']), 1 ); ?>" style="width: 95%" /></td>
         </tr>
         <tr>
         	<th scope="row"><?php _e('Short description:') ?></th>
         	<td><input type="text" name="description" value="" style="width: 95%" /></td>
         	</tr>
        <tr>
           <th scope="row"><?php _e('Category:') ?></th>
           <td><?php category_dropdown('category'); ?></td>
         </tr>
</table>
</fieldset>
       <p class="submit">
         <input type="submit" name="submit" value="<?php _e('Add Link &raquo;') ?>" /> 
       </p>
	<fieldset class="options">
	<legend><?php _e('Link Relationship (XFN)') ?></legend>
        <table class="editform" width="100%" cellspacing="2" cellpadding="5">
            <tr>
                <th width="33%" scope="row"><?php _e('rel:') ?></th>
            	<td width="67%"><input type="text" name="rel" id="rel" size="50" value="<?php echo $link_rel; ?>" /></td>
           	</tr>
            <tr>
                <th scope="row"><?php _e('<a href="http://gmpg.org/xfn/">XFN</a> Creator:') ?></th>
/** 
* Display Custom Fields in admin "Edit/Create Post" page
* 
* @return void
*/
function displayCustomFields($area = 'options')
{
    global $SITEURL;
    if (isset($_GET['edit_post'])) {
        $id = $_GET['edit_post'];
        $file = BLOGPOSTSFOLDER . $id . '.xml';
        $data_edit = getXML($file);
    }
    // SimpleXML to read from
    $CustomFields = new customFields();
    $customFields = $CustomFields->getCustomFields();
    $customFieldsArea = $customFields[$area];
    if (!$customFields || count($customFields) <= 0) {
        return;
    }
    // Editor settings (copied from edit.php)
    if (defined('GSEDITORLANG')) {
        $EDLANG = GSEDITORLANG;
    } else {
        $EDLANG = 'en';
    }
    if (defined('GSEDITORTOOL')) {
        $EDTOOL = GSEDITORTOOL;
    } else {
        $EDTOOL = 'basic';
    }
    if (defined('GSEDITOROPTIONS') && trim(GSEDITOROPTIONS) != "") {
        $EDOPTIONS = ", " . GSEDITOROPTIONS;
    } else {
        $EDOPTIONS = '';
    }
    if ($EDTOOL == 'advanced') {
        $toolbar = "\r\n\t\t['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', 'Table', 'TextColor', 'BGColor', 'Link', 'Unlink', 'Image', 'RemoveFormat', 'Source'],\r\n\t\t'/',\r\n\t\t['Styles','Format','Font','FontSize']\r\n\t\t";
    } elseif ($EDTOOL == 'basic') {
        $toolbar = "['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', 'Link', 'Unlink', 'Image', 'RemoveFormat', 'Source']";
    } else {
        $toolbar = GSEDITORTOOL;
    }
    // Editor settings end
    $col = 0;
    $uploader_col = 0;
    foreach ($customFieldsArea as $the) {
        $key = strtolower($the['key']);
        $label = $the['label'];
        $type = $the['type'];
        $value = isset($_GET['edit_post']) && $_GET['edit_post'] != "" ? $data_edit->{$key} : '';
        $meta_class = $col % 2 ? 'even_meta' : 'odd_meta';
        switch ($type) {
            case 'textfull':
                // draw a full width TextBox
                echo '<p style="width:100%;">';
                if ($label != '') {
                    echo '<label>' . $label . ':</label>';
                }
                echo '<input class="text" type="text" style="width:533px;" id="post-' . $key . '" name="post-' . $key . '" value="' . $value . '" /></p>';
                $col += 2;
                break;
            case 'dropdown':
                echo '<p class="' . $meta_class . '">';
                if ($label != '') {
                    echo '<label>' . $label . ':</label>';
                }
                echo '<select id="post-' . $key . '" name="post-' . $key . '" class="text shorts">';
                if ($key == 'category') {
                    category_dropdown($data_edit->category);
                } else {
                    foreach ($the['options'] as $option) {
                        $attrs = $value == $option ? ' selected="selected"' : '';
                        echo '<option value="' . $option . '" ' . $attrs . '>' . $option . '</option>';
                    }
                }
                echo '</select></p>';
                $col++;
                break;
            case 'checkbox':
                if ($value != '') {
                    $checked = 'checked="checked"';
                } else {
                    $checked = '';
                }
                if ($label != '') {
                    echo '<p class="' . $meta_class . '"><label>' . $label . '?</label>';
                }
                echo '<input type="checkbox" class="checkp" id="post-' . $key . '" name="post-' . $key . '" value="on" ' . $checked . '/></p><div style="clear:both;"></div>';
                $col++;
                break;
            case "textarea":
                echo '<p style="width:100%;">';
                if ($label != '') {
                    echo '<label>' . $label . ':</label>';
                }
                echo '<textarea id="post-' . $key . '" name="post-' . $key . '" style="width:635px !important; height:420px;line-height:18px;text-align:left;	color:#333;
				border:1px solid #aaa;">' . $value . '</textarea></p>';
                ?>
				<script type="text/javascript" src="template/js/ckeditor/ckeditor.js"></script>
				<script type="text/javascript">
				// missing border around text area, too much padding on left side, ...
				$(function() {
					CKEDITOR.replace( 'post-<?php 
                echo $key;
                ?>
', {
						skin : 'getsimple',
						forcePasteAsPlainText : false,
						language : '<?php 
                echo $EDLANG;
                ?>
',
						defaultLanguage : '<?php 
                echo $EDLANG;
                ?>
',
						entities : false,
						uiColor : '#FFFFFF',
						height: '200px',
						baseHref : '<?php 
                echo $SITEURL;
                ?>
',
						toolbar : [ <?php 
                echo $toolbar;
                ?>
 ],
						<?php 
                echo $EDOPTIONS;
                ?>
						filebrowserBrowseUrl : 'filebrowser.php?type=all',
						filebrowserImageBrowseUrl : 'filebrowser.php?type=images',
						filebrowserWindowWidth : '730',
						filebrowserWindowHeight : '500'
					})
				});
				</script>
				<?php 
                $col += 2;
                break;
            case 'text':
            default:
                echo '<p class="' . $meta_class . '">';
                if ($label != '') {
                    echo '<label>' . $label . ':</label>';
                }
                echo '<input class="text short" type="text" id="post-' . $key . '" name="post-' . $key . '" value="' . $value . '" /></p>';
                $col++;
                break;
            case "hidden":
                echo '';
                echo '<input class="' . $meta_class . '" class="" type="hidden" id="post-' . $key . '" name="post-' . $key . '" value="' . $value . '" />';
                break;
            case "title":
                echo '<p>';
                if ($label != '') {
                    echo '<label>' . $label . ':</label>';
                }
                echo '<input class="text title" name="post-' . $key . '" id="post-' . $key . '" type="text" value="' . $value . '" /></p>';
        }
        if ($uploader_col >= 3) {
            $uploader_col = 0;
        }
        if ($col >= 2) {
            $col = 0;
        }
    }
    echo '<div style="clear:both;"></div>';
}
     $meeting_geo1 = $geo1_id = $row['meeting_geo1'];
     $meeting_geo2 = $geo2_id = $row['meeting_geo2'];
     $meeting_geo3 = $geo3_id = $row['meeting_geo3'];
     $meeting_geocheck_1 = $row['meeting_geocheck_1'];
     $meeting_geocheck_2 = $row['meeting_geocheck_2'];
     $meeting_geocheck_3 = $row['meeting_geocheck_3'];
     //$meeting_geo_name = $row['meeting_geo_name'];
     $meeting_attributes = $row['meeting_attr'];
     $meeting_hard = $row['meeting_hard'];
     $meeting_moder = $row['comeback'] > $row['meeting_time'] ? $row['comeback'] + 43200 : $row['meeting_until'];
     $meeting_moder = $row['meeting_moder'] > $row['meeting_until'] ? $row['meeting_moder'] : $meeting_moder;
 }
 $db->sql_freeresult($result);
 // Вывод страны
 get_categories();
 category_dropdown($data, $meeting_country);
 get_region_by_category($meeting_country);
 region_dropdown($data, $meeting_region);
 if ($meeting_geo1 || $meeting_geo2 || $meeting_geo3) {
     $geos = array();
     $geos[0] = $meeting_geo1;
     if ($meeting_geo2) {
         $geos[1] = $meeting_geo2;
     }
     if ($meeting_geo3) {
         $geos[2] = $meeting_geo3;
     }
 }
 $meeting_phone = str_replace('-', '&ndash;', $meeting_phone);
 $meeting_phone = str_replace('?', '', $meeting_phone);
 //	$meeting_phone = str_replace(')', '-', $meeting_phone);
Exemple #8
0
/** 
* RSS Feed management area
* 
* @return void
*/
function edit_rss()
{
    $rss_file = getXML(BLOGRSSFILE);
    ?>
	<h3 class="floated"><?php 
    i18n(BLOGFILE . '/MANAGE_FEEDS');
    ?>
</h3>
	<div class="edit-nav" >
		<a href="#" id="metadata_toggle">
			<?php 
    i18n(BLOGFILE . '/ADD_FEED');
    ?>
		</a>
	</div>
	  <div class="clear"></div>
	<div id="metadata_window" style="display:none;text-align:left;">
		<form class="largeform" action="load.php?id=blog&auto_importer&add_rss" method="post">
		    <p style="float:left;width:150px;clear:both">
		      <label for="page-url"><?php 
    i18n(BLOGFILE . '/ADD_NEW_FEED');
    ?>
</label>
			  <input class="text" type="text" name="post-rss" value="" style="padding-bottom:5px;" />
		    </p>
		    <p style="float:left;width:100px;margin-left:20px;">
		    	<label for="page-url"><?php 
    i18n(BLOGFILE . '/BLOG_CATEGORY');
    ?>
</label>
				<select class="text" name="post-category">	
					<?php 
    category_dropdown($blog_data->category);
    ?>
				</select>
		    </p>
		    <p style="float:left;width:200px;margin-left:0px;clear:both">
		    <span>
		      <input class="submit" type="submit" name="rss_edit" value="<?php 
    i18n(BLOGFILE . '/ADD_FEED');
    ?>
" style="width:auto;" />
		    </span>
		    &nbsp;&nbsp;<?php 
    i18n(BLOGFILE . '/OR');
    ?>
&nbsp;&nbsp;
		    <a href="load.php?id=blog" class="cancel"><?php 
    i18n(BLOGFILE . '/CANCEL');
    ?>
</a>
		  </p>
		</form>
	</div>
	  <div class="clear"></div>
	  <table class="highlight">
	  <tr>
	  <th><?php 
    i18n(BLOGFILE . '/RSS_FEED');
    ?>
</th><th><?php 
    i18n(BLOGFILE . '/FEED_CATEGORY');
    ?>
</th><th><?php 
    i18n(BLOGFILE . '/DELETE_FEED');
    ?>
</th>
	  </tr>
	  <?php 
    foreach ($rss_file->rssfeed as $feed) {
        $rss_atts = $feed->attributes();
        echo '
	<tr><td>' . $feed->feed . '</td><td>' . $feed->category . '</td><td><a href="load.php?id=blog&auto_importer&delete_rss=' . $feed['id'] . '">X</a></td></tr>
	';
    }
    ?>
	  </table>
<?php 
}