Administrative panel modifying/changing svg contents

Asked

Viewed 27 times

0

I was imagining a page structure like this, but I do not know if it is possible to execute and wanted to know the paths and possibilities.

detalhes

In a div would have mysql table data and a svg. The objects of svg, click would open a modal.

The idea of this is to think of objects as chairs of an event. One would be choosing a chair for it.

the svg is a seating chart, depending on the location of the event, would change the svg.

The goal

In a php admin panel change page content.

Objective practice

I will hold a new event and want to register another seating map without editing files "manually", having to have only the new svg.

Questions

I may be storing in the directory the svg and in the register/change pull his path ? More specifically, include his code within the div ?

I may be generating a file, a new page when registering, and automatically saving in the directory in the future when I want to have two events at the same time on the site ?

  • Will the source of this SVG be stored in the database? In file? A simple if($_GET['evento'] == 1) echo="path/do/svg/evento1.svg"; doesn’t solve your problem?

  • @daniel, had put in his head that database did not receive file, but was completely mistaken, so much so that in my doubt I only mentioned saving the file in the directory, I will see about it straight!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.