Guest User

Untitled

a guest
Dec 12th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. <?php
  2.  
  3. $parsingGreec = new stdClass;
  4. foreach ((array) get_post_meta('33688') as $k => $v) {
  5. $parsingGreec->$k = $v[0];
  6. }
  7. ?>
  8.  
  9. <?php
  10. $args = array(
  11. 'numberposts' => 0,
  12. 'post_type' => 'parsing'
  13. );
  14. $catPosts = get_posts($args);
  15.  
  16. echo '<form method="POST">';
  17. echo '<select>';
  18. foreach ($catPosts as $singlePost) {
  19. echo '<option>'.$singlePost->post_title. '' .get_post_meta($catPosts).'</option>';
  20. };
  21. echo '</select>';
  22. echo '';
  23. echo '</form>';
  24. print_r($catPosts);
  25. ?>
  26.  
  27. <div class="flex_grid">
  28. <form method="POST" id="form_post">
  29.  
  30. <label for="lft_after_before_field">C какого числа: </label>
  31. <input type="text" id= "lft_after_field" name="startdata" value="<?echo $parsingGreec->month_after_value_key ?>" size="25" />
  32. <label for="lft_after_before_field">По какое число: </label>
  33. <input type="text" id= "lft_before_field" name="enddata" value="<?echo $parsingGreec->month_before_value_key ?>" size="25" />
  34. <label for="lft_after_before_field">Количество ночей: </label>
  35. <input type="text" id= "lft_night_field" name="night" value="<?echo $parsingGreec->parsing_night_key ?>" size="25" />
  36. <button type="submit" value="parsing">Спарсить</button>
  37. <?php print_r($_POST['lft_before_field']); ?>
  38. </form>
Add Comment
Please, Sign In to add comment